随笔分类 -  Angular

摘要:{"Unterminated string literal.": "未终止的字符串文本。","Identifier expected.": "应为标识符。","'{0}' expected.": "应为“{0}”。","A file cannot have a reference to itself 阅读全文
posted @ 2017-08-18 18:04 AndreMao 阅读(1046) 评论(0) 推荐(0)
摘要:用[(ngModel)]="xxx"双向绑定,如:控制台报错:Can't bind to 'ngModel' since it isn't a known property of 'input'. 解决办法:在app.module.ts文件中导入FormsModule 阅读全文
posted @ 2017-07-19 22:16 AndreMao 阅读(328) 评论(0) 推荐(0)