Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.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
Routing Angular2::异常:路由器实例化期间出错!(路由器链接->;路由器)_Routing_Angular_Router - Fatal编程技术网

Routing Angular2::异常:路由器实例化期间出错!(路由器链接->;路由器)

Routing Angular2::异常:路由器实例化期间出错!(路由器链接->;路由器),routing,angular,router,Routing,Angular,Router,我已经尝试解决这个问题好几个小时了,在网上搜索它并看到类似的工作示例后,我不明白它为什么不工作 无法使此路由系统正常工作:angular.io/docs/ts/latest/guide/router.html 一些人认为问题在于index.html和在标题或文档中使用可以实现这一点,但没有 我有我的app.component.ts,带有如下路径: 以及app.component.html,如下所示: bootstrap()看起来怎么样?@GünterZöchbauer现在看起来是这样的:好的,

我已经尝试解决这个问题好几个小时了,在网上搜索它并看到类似的工作示例后,我不明白它为什么不工作

无法使此路由系统正常工作:angular.io/docs/ts/latest/guide/router.html

一些人认为问题在于index.html和在标题
文档中使用可以实现这一点,但没有

我有我的
app.component.ts
,带有如下路径:

以及
app.component.html
,如下所示:

bootstrap()
看起来怎么样?@GünterZöchbauer现在看起来是这样的:好的,然后从所有组件中删除
HTTP\u提供程序
ROUTER\u提供程序
。仍然没有运气,仍然爆炸。