Header menu logo Navs

RouteDefinition<'View> Type

Record fields

Record Field Description

cacheStrategy

Full Usage: cacheStrategy

Field type: CacheStrategy

The strategy that the router will use to cache the views that are rendered when the route is activated.

Field type: CacheStrategy

canActivate

Full Usage: canActivate

Field type: RouteGuard<'View> list

The guards that will be executed when the route is activated. If any of them returns false, the route will not be activated.

Field type: RouteGuard<'View> list

canDeactivate

Full Usage: canDeactivate

Field type: RouteGuard<'View> list

The guards that will be executed when the route is deactivated. If any of them returns false, the route will not be deactivated.

Field type: RouteGuard<'View> list

children

Full Usage: children

Field type: RouteDefinition<'View> list

The children routes that this route contains.

Field type: RouteDefinition<'View> list

getContent

Full Usage: getContent

Field type: GetView<'View>

The delegate that will be called to render the view when the route is activated.

Field type: GetView<'View>

name

Full Usage: name

Field type: string

Name used to locate this route for "by-name" route activation

Field type: string

pattern

Full Usage: pattern

Field type: string

The URL pattern that will be used to match the route and enforce the URL's parameters to be extracted and passed to the view.

Field type: string

Type something to start searching.