@daffodil/router
v0.69.0
Published
Adds features and provides utils for the Angular router.
Downloads
71
Readme
@daffodil/router
Contains utilities useful for dealing with and adding features to the Angular router.
Features
Route Named Views
Adds the ability to define additional components in a Route
config:
const routes = [
<DaffRouteWithNamedViews>{
...
data: {
daffNamedViews: {
key: MyComponent,
},
},
},
]
Each component is associated with a key and can be rendered like so:
<ng-container daffRouterNamedViewOutlet="key"></ng-container>