Federerer / aurelia-monaco-editor

Integrates the Monaco Editor with Aurelia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repo shows how to integrate the Monaco Editor with Aurelia

The application is based upon aurelia-cli which is the new command line interface for Aurelia.

I picked aurelia-cli because it is really simple and uses RequireJS for module loading which plays nicely with how the Monaco Editor is exposed.

The integration is implemented as a custom element in Aurelia.

Usage

<template>
  <require from="resources/elements/monaco-editor"></require>
  <monaco-editor options.bind="{language:'javascript', value:'console.log(42)'}"/>  
</template>

About

Integrates the Monaco Editor with Aurelia


Languages

Language:JavaScript 55.8%Language:TypeScript 42.7%Language:HTML 1.5%