无法绑定到'ngModel',因为它不是'div'的已知属性

时间:2016-11-03 12:42:18

标签: html5 angular typescript

我正在使用Angular 2创建小应用程序。在此我需要在表单中实现双向绑定但它给出了我的错误,如上所示是代码 Html file app.module.ts

这是我的package.json “依赖”:{

"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/core": "2.0.0",
"@angular/forms": "^2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/platform-server": "2.0.0",
"@angular/router": "3.0.0"

}

请帮帮我。

0 个答案:

没有答案