最近准备学习 angularjs2.0 了,但是在配置环境上遇到了问题
安装了 npm 中的 eslint-plugin-angular ,也按照了里面的教程写了.eslintrc 。 将 angularjs 官方 demo (快速上手那个)复制下来的时候,一直提示 ng is not defined
(function(app) { app.AppCompOnent= ng.core.Component({ selector: "my-app", template: "<h1>My First Angular App</h1>" }) .Class({ constructor: function() {} }); })(window.app || (window.app = {})); 诸君有没有配置好的.eslintrc 文件,平时都是用什么写 angular ?或者说有没有其他兼容 angular2.0 的 IDE 推荐呢
