Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

get route query params angular

export class HeroComponent implements OnInit {
  constructor(private _activatedRoute: ActivatedRoute, private _router:Router) {
    _router.routerState.queryParams.subscribe(
      params => console.log('queryParams', params['st']));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #route #query #params #angular
ADD COMMENT
Topic
Name
6+7 =