I am using aungular-ui-ace to create a code editor in my web site. All is fine, but I want include autocomplete option. The option {enableBasicAutocompletion: true} dont work for me.
My Code:
var app = angular.module('MyApp', ['ui.ace']);
app.controller('MyCtrl', function($scope){});
<head>
<script src="/bower_components/angular/angular.js"></script>
<script type="text/javascript" src="/bower_components/ace-builds/src-min-noconflict/ace.js"></script>
<script type="text/javascript" src="/bower_components/angular-ui-ace/ui-ace.js"></script>
</head>
<body ng-app="MyApp" ng-controller="MyCtrl">
<div ui-ace="{mode: 'javascript', enableBasicAutocompletion: true}"></div>
</body>
Aucun commentaire:
Enregistrer un commentaire