File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import { NgModule } from '@angular/core' ;
22import { Routes , RouterModule } from '@angular/router' ;
3+ import { AppComponent } from './app.component' ;
34
45
5- const routes : Routes = [ ] ;
6+ const routes : Routes = [
7+ { path : '' , component : AppComponent } , // Root route displays Home
8+
9+ ] ;
610
711@NgModule ( {
812 imports : [ RouterModule . forRoot ( routes ) ] ,
Original file line number Diff line number Diff line change 11import { enableProdMode , provideZoneChangeDetection } from '@angular/core' ;
2- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' ;
32
43import { AppModule } from './app/app.module' ;
54import { environment } from './environments/environment' ;
5+ import { platformBrowser } from '@angular/platform-browser' ;
66
77if ( environment . production ) {
88 enableProdMode ( ) ;
99}
1010
11- platformBrowserDynamic ( ) . bootstrapModule ( AppModule , { applicationProviders : [ provideZoneChangeDetection ( ) ] , } )
11+ platformBrowser ( ) . bootstrapModule ( AppModule , { applicationProviders : [ provideZoneChangeDetection ( ) ] , } )
1212 . catch ( err => console . error ( err ) ) ;
You can’t perform that action at this time.
0 commit comments