Product-List aus Tutorial übernommen (direkt mit Erweiterungen)
[examples/angular-tutorial] / src / app / app.module.ts
1 import { BrowserModule } from '@angular/platform-browser';
2 import { NgModule } from '@angular/core';
3 import { RouterModule } from '@angular/router';
4
5 import { AppComponent } from './app.component';
6 import { TopBarComponent } from './top-bar/top-bar.component';
7 import { ProductListComponent } from './product-list/product-list.component';
8
9 @NgModule({
10   declarations: [
11     AppComponent,
12     TopBarComponent,
13     ProductListComponent
14   ],
15   imports: [
16     BrowserModule,
17     RouterModule.forRoot([
18       { path: '', component: ProductListComponent }
19     ])
20   ],
21   providers: [],
22   bootstrap: [AppComponent]
23 })
24 export class AppModule { }