Open thatkookooguy opened 8 years ago
Tried using the ng-readonly attribute.
ng-readonly
here's my code:
var vm = this; // Init vm.code = ''; vm.settings = { isReadOnly: true };
ui-ace
<div class="editor" ui-ace="main.editorOptions" ng-model="main.code" ng-readonly="main.settings.isReadOnly"></div>
even though the setting is set for true in initialization, it doesn't effect the read only state of the ace editor.
true
Am I missing something?
Tried using the
ng-readonly
attribute.here's my code:
main controller:
My
ui-ace
directiveeven though the setting is set for
true
in initialization, it doesn't effect the read only state of the ace editor.Am I missing something?