angular-ace

1.0.4 • Public • Published

angular-ace-directive

usage

include

    <script src="./node_modules/angular-ace/dist/angular-ace.js"></script>

or

    <script src="./node_modules/angular-ace/dist/angular-ace.min.js"></script>

include 'angular.ace' as dependecy in your module declaration

    (function(){
        angular
            .module('my.application.module',['angular.ace'])
       ......
    })();

use the directive

    <div ace-editor ace-config="{setTheme:'monokay',setMode:'ace/mode/javascript'}"></div>

Optionals

$ace provider returns the ace namespace

with shortcuts :

  • themes shortcut for ace.require("ace/ext/modelist").themes
  • modes shortcut for ace.require("ace/ext/themelist").modes

Note : you might need to style

[ace-editor]{
    min-height:??px;
    min-width:??px;
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    1
    • latest

Version History

Package Sidebar

Install

npm i angular-ace

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • alfu32