This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

Route

npm Package @angular/router
Module import { Route } from '@angular/router';
Source router/src/config.ts

Interface Overview

      
      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
}
    

Description

See Routes for more details.

Members

      
      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