Angular2 - Unhandled Promise rejection: Cannot assign to a reference or variable! ; Zone: <root> ; Task: Promise.then ; Value:

当在html中定义的input 的名称 #name 与ts中class的属性名称相同,则会报该错。

 

参考:

http://4dev.tech/2016/09/angular2-error-cannot-assign-to-a-reference-or-variable-zone-root-task-promise-then-value-error-cannot-assign-to-a-reference-or-variable/

posted @ 2017-06-15 13:58  Jane&Coding  阅读(2462)  评论(0)    收藏  举报