Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/435.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在AngularJS 1.X中使用Monaco编辑器_Javascript_Angularjs_Angularjs Directive_Monaco Editor_Ui Codemirror - Fatal编程技术网

Javascript 在AngularJS 1.X中使用Monaco编辑器

Javascript 在AngularJS 1.X中使用Monaco编辑器,javascript,angularjs,angularjs-directive,monaco-editor,ui-codemirror,Javascript,Angularjs,Angularjs Directive,Monaco Editor,Ui Codemirror,因为,我尝试使用另一个基于JavaScript的源代码编辑器,而不是CodeMirror和Ace,它可以与AngularJS 1.X一起工作。我正在调查 我跑得很好。但我不知道如何使它与AngularJS 1.X一起工作 例如,我想将ng if、ng model和ng change绑定到编辑器,以决定何时和显示什么,并在有任何更改时运行函数。使用,我们可以编写一个指令: <textarea ng-if="condition" ng-change="change(content)" ng-m

因为,我尝试使用另一个基于JavaScript的源代码编辑器,而不是CodeMirror和Ace,它可以与
AngularJS 1.X
一起工作。我正在调查

我跑得很好。但我不知道如何使它与AngularJS 1.X一起工作

例如,我想将
ng if
ng model
ng change
绑定到编辑器,以决定何时和显示什么,并在有任何更改时运行函数。使用,我们可以编写一个指令:

<textarea ng-if="condition" ng-change="change(content)" ng-model="content" ui-codemirror="{ mode: 'application/json' }"></textarea>


那么有人知道摩纳哥编辑器是否有这样的
ui-
指令吗?在angular框架中是否有任何解决方法来实现同样的目标?

我开始通过模仿ui codemirror来编写一个。它还没有完成,但对我的有限使用有效。

它仍然有效。。。如果有什么对你不起作用,就调查一下代码,为你的案件修改代码并不难……我的英雄!!谢谢你,伙计