List out the differences between activatedroute and routerstate, with reference to angular 2.
Answer / Suraj Gupta
*ActivatedRoute*: It's a service in Angular 2 used for accessing route parameters, query parameters, and current route data. n*RouterState*: It represents the entire route tree of your application.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is injector?
What is data binding angular?
How to cache an observable data in angular 2?
What is patchvalue used for?
Explain service? When we should use service?
What is primeng? How can it be used with angular 2?
What is difference between ng if and ng show?
Explain $scope in angular?
How to pass data into components with @input in angular 2?
What are decorators?
Explain component metadata?
What is const javascript?