我已将URL中的参数传递给我的ionic应用程序
http://localhost:8100/welcompage/overview?brand=bmw
我正在使用ActivateRoute检索作为URL中的参数传递的数据
constructor(private route: ActivatedRoute) {
}
ngOnInit() {
this.route.params.subscribe(params => {
console.log(params['brand']);
});
}
输出总是"未定义",同时URL中有参数