Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

angular get url param

constructor(private activatedRoute: ActivatedRoute) {
  this.activatedRoute.queryParams.subscribe(params => {
        let date = params['startdate'];
        console.log(date); // Print the parameter to the console. 
    });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #url #param
ADD COMMENT
Topic
Name
9+8 =