File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -105,3 +105,22 @@ Add aliases for apps to paths in tsconfig.base.json.
105105 "@angular-mfe-nx/ui": ["libs/ui/src/index.ts"]
106106```
107107
108+ ### Add Routes for apps
109+
110+ Note: ESLint error needs override:
111+
112+ ``` typescript
113+ export const appRoutes: Route [] = [
114+ {
115+ path: ' app-one' ,
116+ // eslint-disable-next-line @nx/enforce-module-boundaries
117+ loadComponent : () => import (' @angular-mfe-nx/app-one/app.component' ).then (m => m .AppComponent )
118+ },
119+ {
120+ path: ' app-two' ,
121+ // eslint-disable-next-line @nx/enforce-module-boundaries
122+ loadComponent : () => import (' @angular-mfe-nx/app-two/app.component' ).then (m => m .AppComponent )
123+ },
124+ ];
125+ ```
126+
Original file line number Diff line number Diff line change 11import { Route } from '@angular/router' ;
22
3- export const appRoutes : Route [ ] = [ ] ;
3+ export const appRoutes : Route [ ] = [
4+ {
5+ path : 'app-one' ,
6+ // eslint-disable-next-line @nx/enforce-module-boundaries
7+ loadComponent : ( ) => import ( '@angular-mfe-nx/app-one/app.component' ) . then ( m => m . AppComponent )
8+ } ,
9+ {
10+ path : 'app-two' ,
11+ // eslint-disable-next-line @nx/enforce-module-boundaries
12+ loadComponent : ( ) => import ( '@angular-mfe-nx/app-two/app.component' ) . then ( m => m . AppComponent )
13+ } ,
14+ ] ;
15+
You can’t perform that action at this time.
0 commit comments