I'm trying to create some actions to insert pre-defined text into the editor, but it doesn't appear to cause the model to change. template: <div class="form-control" ui-ace="myController.editorOptions" name="definition" data-ng-model="myController.data.definition" data-ng-change="myController.updateDefinition()" data-ng-model-options="{updateOn: 'default', debounce: {'default': 500}"></div> in controller: ``` editor.insert("text to insert"); ``` this is not causing the updateDefinition() method to be called.
I'm trying to create some actions to insert pre-defined text into the editor, but it doesn't appear to cause the model to change.
template:
in controller:
this is not causing the updateDefinition() method to be called.