Due to the challenges presented in this particular issue, I am seeking an alternative JavaScript-based source code editor compatible with AngularJS 1.X
. My current exploration has led me to consider utilizing Monaco Editor.
While I have successfully executed a sample using Monaco Editor, I am uncertain about integrating it with AngularJS 1.X.
My objective is to establish bindings such as ng-if
, ng-model
, and ng-change
with the editor, controlling display based on conditions and executing functions upon changes. In the past, ui-codemirror provided a directive as shown:
<textarea ng-if="condition" ng-change="change(content)" ng-model="content" ui-codemirror="{ mode: 'application/json' }"></textarea>
My query is whether a similar ui-
directive exists for Monaco Editor. Alternatively, are there any workarounds to achieve the desired functionality within the Angular framework?