【发布时间】:2019-04-21 12:32:09
【问题描述】:
https://github.com/Wilkuuu/Biblio
在 html 中的 Books 组件中:
<a
routerLink="/books/{{book.id}}"
class="btn btn-secondary btn-sm">
<i class="fa fa-file"></i>
</a>
在应用程序路由中:
{ path: 'book/:id', component: BookDetailComponent }
在 URL 中,我看到了来自 firebase 的 id,但路径为我提供了:
{ path: '**' , component: NotfoundComponent },
【问题讨论】:
标签: angular firebase service routing components