-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.module.ts
61 lines (58 loc) · 2.26 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
52
53
54
55
56
57
58
59
60
61
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ContactUsComponent } from './contact-us/contact-us.component';
import { TemplateDrivenComponent } from './forms/template-driven/template-driven.component';
import { HomeComponent } from './home/home.component';
import { ProductDetailsComponent } from './product-details/product-details.component';
import { ProductOverviewComponent } from './product-overview/product-overview.component';
import { ProductSpecsComponent } from './product-specs/product-specs.component';
import { ReactiveFormsComponent } from './forms/reactive-forms/reactive-forms.component';
import { CommonModule } from '@angular/common';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { StudentDetailsComponent } from './student-details/student-details.component';
import { GenericInterceptorInterceptor } from './interceptors/generic-interceptor.interceptor';
import { StudentListComponent } from './student-list/student-list.component';
import { HighlightJsModule } from 'ngx-highlight-js';
import { SharedModule } from './shared/shared.module';
import { ParentComponent } from './data-sharing/parent/parent.component';
import { ChildComponent } from './data-sharing/child/child.component';
import { NgIfExampleComponent } from './structural-directives/ng-if-example/ng-if-example.component';
@NgModule({
declarations: [
AppComponent,
HomeComponent,
ContactUsComponent,
ProductDetailsComponent,
ProductOverviewComponent,
ProductSpecsComponent,
TemplateDrivenComponent,
ReactiveFormsComponent,
StudentDetailsComponent,
StudentListComponent,
ParentComponent,
ChildComponent,
NgIfExampleComponent
],
imports: [
CommonModule,
BrowserModule,
AppRoutingModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
HighlightJsModule,
SharedModule
],
providers: [
{
provide: HTTP_INTERCEPTORS,
useClass: GenericInterceptorInterceptor,
multi: true
}
],
bootstrap: [AppComponent]
})
export class AppModule { }