RouterModule
@agros/common / RouterModule
Class: RouterModule
Table of contents
Constructors
Methods
Constructors
constructor
• new RouterModule()
Methods
createRouterItems
▸ Static createRouterItems(context, routes?, prefixPathname?): Promise<RouterItem[]>
Parameters
| Name | Type | Default value |
|---|---|---|
context | Factory | undefined |
routes | RouteOptionItem<any>[] | [] |
prefixPathname | string | '' |
Returns
Promise<RouterItem[]>
Defined in
agros-common/src/modules/router.module.ts:44
forFeature
▸ Static forFeature(__namedParameters): Object
Parameters
| Name | Type |
|---|---|
__namedParameters | RouterModuleRootOptions |
Returns
Object
| Name | Type |
|---|---|
provide | string |
useValue | () => Promise<RouteOptionItem<any>[]> |
Defined in
agros-common/src/modules/router.module.ts:33
forRoot
▸ Static forRoot(__namedParameters): Object
Parameters
| Name | Type |
|---|---|
__namedParameters | RouterModuleRootOptions |
Returns
Object
| Name | Type |
|---|---|
provide | string |
useValue | () => Promise<RouteOptionItem<any>[]> |