Angular 路由初识

Routes:根组件注入 RouterOutlet:放在app.component.html,作为路由指定显示位置的指令 Router:component中用 RouterLink:template HTML中用 ActivatedRoute:component.ts中获取路由参数等 问题: 进入首页 点击“产品” 点击“商品详情” 回到首页 点击“产品”,可以看到路由变化,但是页面ID没有变化
相关文章
相关标签/搜索