What is the better approach to capture Capture query parameters from the Angular active route?
this.activeRoute.snapshot.queryParams
VS
this.route.queryParams.subscribe(params => {
this.queryParams = params;
});
What is the better approach to capture Capture query parameters from the Angular active route?
this.activeRoute.snapshot.queryParams
VS
this.route.queryParams.subscribe(params => {
this.queryParams = params;
});