Skip to content

Instantly share code, notes, and snippets.

@tgvashworth
Created November 5, 2012 21:59
Show Gist options
  • Save tgvashworth/4020664 to your computer and use it in GitHub Desktop.
Save tgvashworth/4020664 to your computer and use it in GitHub Desktop.
Angular & Ace

I'm building an app using Angular that involves using the Ace editor. What I'd like to do is be able to create and editor & control a select few element of Ace's API in an Angular-like way. ie:

<div ng-controller="AceCtrl">
  <ace-editor mode="html" ng-model="code" ng-change="do_stuff()"></ace-editor>
</div>

And have that construct an Ace instance with observable properties.

Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment