Angular - Routing
Consider this Angular component snippet:
If the route is configured as
constructor(private route: ActivatedRoute) { }
ngOnInit() {
this.route.params.subscribe(params => {
console.log(params['productId']);
});
}If the route is configured as
path: 'product/:productId' and the URL is /product/99, what will be logged?