The RouteRegistry holds route configurations for each component in an Angular app. It is responsible for creating Instructions from URLs, and generating URLs based on route and parameters.

Annotations

Constructors

RouteRegistry(@ _rootComponent)

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

config(parentComponent, RouteDefinition config) → void

Given a component and a configuration object, add the route to this registry

configFromComponent(component) → void

Reads the annotations of a component and configures the registry based on them

generate(List linkParams, List<Instruction> ancestorInstructions, [ _aux = false ]) Instruction

Given a normalized list with component names and params like: ['user', {id: 3 }] generates a url with a leading slash relative to the provided parentComponent.

generateDefault(componentCursor) Instruction

hasRoute(String name, parentComponent) → bool

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
recognize(String url, List<Instruction> ancestorInstructions) → Future<Instruction>

Given a URL and a parent component, return the most specific instruction for navigating the application into the state specified by the url

toString() → String

Returns a string representation of this object.

inherited