Pre-load all lazy loaded modules
This commit is contained in:
		
							parent
							
								
									e6c4b87b8b
								
							
						
					
					
						commit
						062a864a17
					
				| @ -1,5 +1,5 @@ | |||||||
| import { NgModule } from '@angular/core'; | import { NgModule } from '@angular/core'; | ||||||
| import { Routes, RouterModule } from '@angular/router'; | import { Routes, RouterModule, PreloadAllModules } from '@angular/router'; | ||||||
| import { StartComponent } from './components/start/start.component'; | import { StartComponent } from './components/start/start.component'; | ||||||
| import { TransactionComponent } from './components/transaction/transaction.component'; | import { TransactionComponent } from './components/transaction/transaction.component'; | ||||||
| import { BlockComponent } from './components/block/block.component'; | import { BlockComponent } from './components/block/block.component'; | ||||||
| @ -537,7 +537,8 @@ if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'liquid') { | |||||||
|   imports: [RouterModule.forRoot(routes, { |   imports: [RouterModule.forRoot(routes, { | ||||||
|     initialNavigation: 'enabled', |     initialNavigation: 'enabled', | ||||||
|     scrollPositionRestoration: 'enabled', |     scrollPositionRestoration: 'enabled', | ||||||
|     anchorScrolling: 'enabled' |     anchorScrolling: 'enabled', | ||||||
|  |     preloadingStrategy: PreloadAllModules | ||||||
|   })], |   })], | ||||||
| }) | }) | ||||||
| export class AppRoutingModule { } | export class AppRoutingModule { } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user