I'm trying the get the url parameters in angular i've tried
 ngOnInit() {   
   this.route.paramMap.subscribe(params => {
     console.log("test1",params)
}) 
//and
console.log("test2", this.route.snapshot.params)
 }
ngAfterViewInit(){
}
The response it get : enter image description here
 
     
    