spring
FCAT.TOP
正心修身齐家治国平天下......
展开
-
【angular】指令及数据绑定入门
指令,数据绑定### 指令分类 内置属性指令: ngClass<!--divclass是一个对象,其中包含了你所需要设置的多个Class信息--><div [ngClass]="divClass2">属性绑定同时管理多个class</div> ngStyle<!--divStyle是一个对象,其中包含了你所需要设置的多个属性信息--><div [ngStyle]原创 2017-11-25 21:11:56 · 284 阅读 · 0 评论 -
【angular】ngModel遇见的坑:Can't bind to 'ngModel' since it isn't a known property of 'input'
启动我的Angular应用程序时,出现以下错误,即使组件未显示。 我必须注释掉,以便我的应用程序工作。zone.js:461 Unhandled Promise rejection: Template parse errors:Can't bind to 'ngModel' since it isn't a known property of 'input'. (" <div>原创 2017-11-24 20:13:37 · 4497 阅读 · 0 评论 -
【angular】Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D
ng build –prod 报错Module not found: Error: Can’t resolve ‘./$$_gendir/app/app.module.ngfactory’ in ‘D:\platform\git-oschina\FCat\fcat-angular\src’原因:angular-cli版本有点低删除项目依赖:rm -rf node_modules/ 安装最新an原创 2017-11-05 02:48:36 · 3512 阅读 · 3 评论