-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.module.ts
51 lines (48 loc) · 1.69 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { MaterialModule } from './material.module';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { BookComponent } from './book/book.component';
import { DvdComponent } from './dvd/dvd.component';
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
import { Routes, RouterModule } from '@angular/router';
import { AppRoutingModule } from './app-routing.module';
import { DvdDetailComponent } from './dvd/dvd-detail/dvd-detail.component';
import { DvdFormComponent } from './dvd/dvd-form/dvd-form.component'
import { ReactiveFormsModule } from '@angular/forms';
import { BookDetailComponent } from './book/book-detail/book-detail.component';
import { BookAuthorsComponent } from './book/book-authors/book-authors.component';
import { ElectronicsModule } from './electronics/electronics.module';
/*
const appRoutes: Routes = [
{ path:'dvds', component: DvdComponent},
{ path:'books', component: BookComponent},
{ path:'', pathMatch: 'full', redirectTo: 'dvds'},
{ path:'**', component: PageNotFoundComponent}
]
*/
@NgModule({
declarations: [
AppComponent,
BookComponent,
DvdComponent,
PageNotFoundComponent,
DvdDetailComponent,
DvdFormComponent,
BookDetailComponent,
BookAuthorsComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
MaterialModule,
// RouterModule.forRoot(appRoutes),
// ElectronicsModule,
AppRoutingModule,
ReactiveFormsModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }