Angularjs2-Can't bind to 'ngModel' since it isn't a known property of 'input'.

Can't bind to 'ngModel' since it isn't a known property of 'input'.

重读官方文档发现 https://angular.cn/docs/ts/latest/tutorial/toh-pt1.html

在app.module.ts中将其引用进去。

posted @ 2016-11-22 13:26  kuangniaokuang  阅读(479)  评论(0编辑  收藏  举报