Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 控制台中的角度组件错误:错误类型错误:无法读取属性';1';未定义的_Angular - Fatal编程技术网

Angular 控制台中的角度组件错误:错误类型错误:无法读取属性';1';未定义的

Angular 控制台中的角度组件错误:错误类型错误:无法读取属性';1';未定义的,angular,Angular,目前我的Chrome控制台出现了这个奇怪的错误。我不知道如何解决这个问题 PractiseLayoutComponent.html:10 ERROR TypeError: Cannot read property '1' of undefined at Object.eval [as updateRenderer] (PractiseLayoutComponent.html:10) at Object.debugUpdateRenderer [as updateRenderer]

目前我的Chrome控制台出现了这个奇怪的错误。我不知道如何解决这个问题

PractiseLayoutComponent.html:10 ERROR TypeError: Cannot read property '1' of undefined
    at Object.eval [as updateRenderer] (PractiseLayoutComponent.html:10)
    at Object.debugUpdateRenderer [as updateRenderer] (core.es5.js:13105)
    at checkAndUpdateView (core.es5.js:12256)
    at callViewAction (core.es5.js:12599)
    at execComponentViewsAction (core.es5.js:12531)
    at checkAndUpdateView (core.es5.js:12257)
    at callViewAction (core.es5.js:12599)
    at execComponentViewsAction (core.es5.js:12531)
    at checkAndUpdateView (core.es5.js:12257)
    at callWithDebugContext (core.es5.js:13467)
也许我做错了什么。不幸的是,恢复更改的成本非常高。 无论如何,我绝对应该知道如何应对这种情况。 谁能给我一些建议去哪里挖掘


终端中的
ng serve
没有错误。

您应该查看第10行的PractiseLayoutComponent.html。这里可能缺少一些内容。

您可以先发布相关的代码片段?