我在angular2应用程序中收到以下错误 .
TypeError:无法读取undefined的属性'visitStatement'
当你有一个空的事件处理程序,你会遇到这个问题,
(click)=""
摆脱空事件处理程序将解决此问题 .
Ref:
https://github.com/angular/angular/issues/3754
http://hemanshubhojak.com/2016/07/04/angular2-cannot-read-property-visitstatement-of-undefined.html
1 回答
当你有一个空的事件处理程序,你会遇到这个问题,
摆脱空事件处理程序将解决此问题 .
Ref:
https://github.com/angular/angular/issues/3754
http://hemanshubhojak.com/2016/07/04/angular2-cannot-read-property-visitstatement-of-undefined.html