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