javascript - Angular 12, rendering dynamically routes in the page error
问题描述
I am trying to render dynamic routing in Angular but it gives an error. I want to render the pages according to the route link dynamically. have a look on a code: this is archive.component.ts code:
I want to do this: when user clicks on a link in a home component it takes them to the archive page and the heading there is rendered dynamically on which link user selected.
here are the pictures of it:
解决方案
推荐阅读
- c# - 找不到文件时不运行 C# else 语句
- c++ - C++中的多线程for循环
- vue.js - Vue.js Vuex 如何正确使用 store.watch() 方法?
- c# - 使用 Serilog 自定义 ASP.NET Core 记录器
- bash - 将数组传递给 GNU Parallel 以替换 for 循环
- webpack - Aurelia CLI 使用 Webpack 和“脚本加载器”的问题
- netbeans - 列出 NetBeans 8.2 maven java 非 Web 应用项目中的 NPM 库
- html - Safari 和 CSS 列的问题
- node.js - Chrome Node DevTools Inspector 停止列出文件
- node.js - 我们可以在团队中使用“npm link”命令吗?