无法阅读财产'匹配'未定义的(ace-angular)

时间:2017-07-05 17:20:52

标签: javascript angularjs node.js ace-editor

我用npm安装了ace-angular并在angular中创建了ace编辑器,它看起来像这样:

[HTML]
<div id="editor" ace-editor="aceOptions" ng-model="aceContent"></div>

[JS]
$scope.aceOptions = {
    method: "javascript",
    theme: "monokai",
    onLoad: function(editor, session, ace){
        // Do on load
    }
}

它一直在说&#34; TypeError:无法读取属性&#39;匹配&#39;未定义&#34;每次我用ace编辑器加载页面。 屏幕截图:enter image description here

编辑:

[AngularJS]
var app = angular.module("cloude", ["ngRoute", "ace.angular"]);

如果我删除&#34; ace.angular&#34;似乎不会出现错误。所以我猜这是模块的问题?

0 个答案:

没有答案