1.

What is Activatedroutesnapshot in angular 2?

Answer»

Activatedroutesnapshot in Angular 2 is basically an immutable object which is used to represent a particular version of ActiveRoute.

For the IMPLEMENTATION of Activatedroutesnapshot object FOLLOWING SYNTAX can be used.

export CLASS ActivatedRoute {
   /** The current snapshot of this route **/
   snapshot: ActivatedRouteSnapshot;
}

65. What is Router state in angular 2?

Router state represents all the state of the router as a tree of activated routes.

interface RouterState extends Tree {
   snapshot: RouterStateSnapshot
   toString(): string
}

Also Read: What is the best formal dress for MEN in an interview


Discussion

No Comment Found