Dapatkan kueri Params dari URL Angular
import { ActivatedRoute } from '@angular/router';
export class ExampleComponent implements OnInit {
constructor(private router: ActivatedRoute) { }
ngOnInit() {
this.router.queryParams.subscribe(res=>{
console.log(res) //will give query params as an object
})
}
}
Sad Santa