在写angular的基本案例的时候报错:
ERROR TypeError: Cannot read property 'name' of undefined
at Object.eval [as updateDirectives] (ContactNewComponent.html:18)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:45259)
at checkAndUpdateView (core.js:44271)
同时前端也报红线
检查多次发现是自己的组建中绑定的数据定义的时候写错格式了
将冒号改成=就好了