List out the differences between activatedroute and routerstate, with reference to angular 2.



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

Post New Answer

More AngularJS Interview Questions

Explain what is injector?

1 Answers  


What is data binding angular?

1 Answers  


How to cache an observable data in angular 2?

1 Answers  


What is patchvalue used for?

1 Answers  


Explain service? When we should use service?

1 Answers  


What is primeng? How can it be used with angular 2?

1 Answers  


What is difference between ng if and ng show?

1 Answers  


Explain $scope in angular?

1 Answers  


How to pass data into components with @input in angular 2?

1 Answers  


What are decorators?

1 Answers  


Explain component metadata?

1 Answers  


What is const javascript?

1 Answers  


Categories