Skip to main content

Posts

Showing posts with the label canActivateChild

What is Routes and Route Properties?

Angular Route is an array of route configurations. The “ RouterModule.forRoot ” method in the module imports to configure the router. type   Routes  =  Route []; Each Route has the following properties - interface   Route  {    path ?:  string    pathMatch ?:  string    matcher ?:  UrlMatcher    component ?:  Type < any >    redirectTo ?:  string    outlet ?:  string    canActivate ?:  any []    canActivateChild ?:  any []    canDeactivate ?:  any []    canLoad ?:  any []    data ?:  Data    resolve ?:  ResolveData    children ?:  Routes    loadChildren ?:  LoadChildren    runGuardsAndResolvers ?:  RunGuardsAndResolvers } List of properties and it has the following order - 1.  ...