-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lazy load routes to get under the build budget
- Loading branch information
1 parent
7ef7ef0
commit 729c84d
Showing
3 changed files
with
419 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Route } from '@angular/router'; | ||
import { TodoComponent } from './todo/todo.component'; | ||
import { FlightSearchComponent } from './flight-search/flight-search.component'; | ||
import { FlightSearchSimpleComponent } from './flight-search-data-service-simple/flight-search-simple.component'; | ||
import { FlightEditSimpleComponent } from './flight-search-data-service-simple/flight-edit-simple.component'; | ||
import { FlightSearchDynamicComponent } from './flight-search-data-service-dynamic/flight-search.component'; | ||
import { FlightEditDynamicComponent } from './flight-search-data-service-dynamic/flight-edit.component'; | ||
import { TodoStorageSyncComponent } from './todo-storage-sync/todo-storage-sync.component'; | ||
import { provideFlightStore } from './flight-search-redux-connector/+state/redux'; | ||
import { FlightSearchReducConnectorComponent } from './flight-search-redux-connector/flight-search.component'; | ||
|
||
export const lazyRoutes: Route[] = [ | ||
{ path: 'todo', component: TodoComponent }, | ||
{ path: 'flight-search', component: FlightSearchComponent }, | ||
{ | ||
path: 'flight-search-data-service-simple', | ||
component: FlightSearchSimpleComponent, | ||
}, | ||
{ path: 'flight-edit-simple/:id', component: FlightEditSimpleComponent }, | ||
{ | ||
path: 'flight-search-data-service-dynamic', | ||
component: FlightSearchDynamicComponent, | ||
}, | ||
{ path: 'flight-edit-dynamic/:id', component: FlightEditDynamicComponent }, | ||
{ path: 'todo-storage-sync', component: TodoStorageSyncComponent }, | ||
{ | ||
path: 'flight-search-redux-connector', | ||
providers: [provideFlightStore()], | ||
component: FlightSearchReducConnectorComponent, | ||
}, | ||
]; |
Oops, something went wrong.