ngrouter library
Maps application URLs into application states, to support deep-linking and navigation.
Classes
- BrowserPlatformLocation
-
PlatformLocation
encapsulates all of the direct calls to platform APIs. This class should not be used directly by an application developer. Instead, use Location. - CanActivate
- A lifecycle interface that allows conditionally activating a new route.
- CanDeactivate
- A lifecycle interface that allows conditionally deactivating a route.
- A lifecycle interface that allows conditionally preventing navigation.
- CanReuse
- A lifecycle interface that allows re-using an existing component instance.
- HashLocationStrategy
-
HashLocationStrategy
is a LocationStrategy used to configure the PlatformLocation service to represent its state in the hash fragment of the browser's URL. - Location
-
Location
is a service that applications can use to interact with a browser's URL. - LocationStrategy
-
LocationStrategy
is responsible for representing and reading route state from the browser's URL. Angular provides two strategies: HashLocationStrategy and PathLocationStrategy (default). - Additional parameters for Router.navigate.
- OnActivate
- A lifecycle interface to notify when a component is activated by a route.
- OnDeactivate
- A lifecycle interface to notify when a component is deactivated by a route.
- PathLocationStrategy
-
PathLocationStrategy
is a LocationStrategy used to configure the Location service to represent its state in the path of the browser's URL. - PlatformLocation
- This class should not be used directly by an application developer. Instead, use Location.
- RouteDefinition
- A user defined route path for a router.
- RoutePath
- Encapsulates a RouteDefinition's basic properties and creates link URLs.
- Router
- The Angular router, which is represented as a stream of state changes.
- RouterHook
- An interface that can be extended in order to hook into a route navigation.
- RouterLink
- Creates a listener on the target element that routes to a specified link.
- RouterLinkActive
- Adds a CSS class to the bound element when the link's route becomes active.
- RouterOutlet
- Reserves a location in the DOM as an outlet for the AngularDart Router.
- RouterState
- Represents the state of the router, which is a URL and matching routes.
Enums
- Result of the Navigation when calling Router.navigate.
Constants
-
appBaseHref
→ const OpaqueToken<
String> - The appBaseHref token represents the base HREF to be used for the router.
-
routerDirectives
→ const List<
Type> - The main Router directives.
- routerHashModule → const Module
- The main Router DI module when using hash routing.
- routerModule → const Module
- The main Router DI module.
-
routerProviders
→ const List<
ClassProvider< Object> > - The main Router providers.
-
routerProvidersHash
→ const List<
ClassProvider< Object> > - The main Router providers when using hash routing.