【发布时间】:2023-03-23 11:23:01
【问题描述】:
我有一个类似的元素:
temp = new NewsElement('2', 'Überschrift', 'Inhalt', 'schoenesBild');
temp.addChapter('Kap1Überschrift', 'Kapitel1Inhalt');
temp.addChapter('Kap2Überschrift', 'Kapitel2Inhalt');
this.news[temp.key] = temp;
我想通过 url 键建立一个网站:
localhost:4200/test?topic=2
项目是用 Angular 编写的。
【问题讨论】:
-
你试过带参数的角度路由吗??