I have here the following code. Can anyone suggest an alternative or more efficient method for retrieving the queryParams from the url?
fetchSolutionId(){
let solutionId: number;
this.activatedRoute.queryParams.subscribe((queryParams) => {
solutionId = queryParams.solutionId ? queryParams.solutionId: null;
});
return solutionId;
}