I have passed parameters in URL to my ionic application
http://localhost:8100/welcompage/overview?brand=bmw
I am using ActivatedRoute to retreive the data passed as parameters in the URL
constructor(private route: ActivatedRoute) {
}
ngOnInit() {
this.route.params.subscribe(params => {
console.log(params['brand']);
});
}
the output is always "undefined" meanwhile there are parameters in the URL