1 | import { BrowserModule } from '@angular/platform-browser';
|
---|
2 | import { NgModule } from '@angular/core';
|
---|
3 | import { FormsModule } from '@angular/forms';
|
---|
4 | import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
---|
5 | import { RouterModule } from '@angular/router';
|
---|
6 | import { MaterialModule } from './shared/material.module';
|
---|
7 | import { ReactiveFormsModule } from '@angular/forms';
|
---|
8 |
|
---|
9 | import { DataService } from './shared/data.service';
|
---|
10 |
|
---|
11 | import { AppComponent } from './app.component';
|
---|
12 | import { NavMenuComponent } from './nav-menu/nav-menu.component';
|
---|
13 | import { HomeComponent } from './home/home.component';
|
---|
14 | import { CounterComponent } from './counter/counter.component';
|
---|
15 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
---|
16 | import { KoronaComponent } from './korona/korona.component';
|
---|
17 | import { AdminComponent } from './admin/admin.component';
|
---|
18 | import { DashboardComponent } from './dashboard/dashboard.component';
|
---|
19 | import { LoginComponent } from './login/login.component';
|
---|
20 | import { MedicineDialogComponent } from './dialogs/medicine-dialog/medicine-dialog.component';
|
---|
21 | import { PharmacyDialogComponent } from './dialogs/pharmacy-dialog/pharmacy-dialog.component';
|
---|
22 | import { FacilityDialogComponent } from './dialogs/facility-dialog/facility-dialog.component';
|
---|
23 | import { WorkerDialogComponent } from './dialogs/worker-dialog/worker-dialog.component';
|
---|
24 | import { EditPharmacyDialogComponent } from './dialogs/edit-pharmacy-dialog/edit-pharmacy-dialog.component';
|
---|
25 | import { EditPharmacyHeadDialogComponent } from './dialogs/edit-pharmacy-head-dialog/edit-pharmacy-head-dialog.component';
|
---|
26 | import { PharmacyHeadDialogComponent } from './nav-menu/dialogs/pharmacy-head-dialog/pharmacy-head-dialog.component';
|
---|
27 |
|
---|
28 | @NgModule({
|
---|
29 | declarations: [
|
---|
30 | AppComponent,
|
---|
31 | NavMenuComponent,
|
---|
32 | HomeComponent,
|
---|
33 | CounterComponent,
|
---|
34 | KoronaComponent,
|
---|
35 | AdminComponent,
|
---|
36 | DashboardComponent,
|
---|
37 | LoginComponent,
|
---|
38 | MedicineDialogComponent,
|
---|
39 | PharmacyDialogComponent,
|
---|
40 | FacilityDialogComponent,
|
---|
41 | WorkerDialogComponent,
|
---|
42 | EditPharmacyDialogComponent,
|
---|
43 | EditPharmacyHeadDialogComponent,
|
---|
44 | PharmacyHeadDialogComponent
|
---|
45 | ],
|
---|
46 | imports: [
|
---|
47 | BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
|
---|
48 | HttpClientModule,
|
---|
49 | FormsModule,
|
---|
50 | RouterModule.forRoot([
|
---|
51 | { path: '', component: HomeComponent, pathMatch: 'full' },
|
---|
52 | { path: 'mapa', component: CounterComponent },
|
---|
53 | { path: 'koronavirus', component: KoronaComponent },
|
---|
54 | { path: 'admin', component: AdminComponent },
|
---|
55 | { path: 'dashboard', component: DashboardComponent },
|
---|
56 | { path: 'dashboard/:token', component: DashboardComponent },
|
---|
57 | { path: 'login', component: LoginComponent }
|
---|
58 | ]),
|
---|
59 | BrowserAnimationsModule,
|
---|
60 | MaterialModule,
|
---|
61 | ReactiveFormsModule
|
---|
62 | ],
|
---|
63 | providers: [
|
---|
64 | DataService
|
---|
65 | ],
|
---|
66 | bootstrap: [AppComponent]
|
---|
67 | })
|
---|
68 | export class AppModule { }
|
---|