source: Farmatiko/ClientApp/src/app/app.module.ts@ 7520f88

Last change on this file since 7520f88 was 8e74e2f, checked in by DimitarSlezenkovski <dslezenkovski@…>, 2 years ago

Fix bugs, add some more.

  • Property mode set to 100644
File size: 3.2 KB
RevLine 
[30a465f]1import { BrowserModule } from '@angular/platform-browser';
2import { NgModule } from '@angular/core';
3import { FormsModule } from '@angular/forms';
4import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
5import { RouterModule } from '@angular/router';
[785b8bd]6import { MaterialModule } from './shared/material.module';
7import { ReactiveFormsModule } from '@angular/forms';
[30a465f]8
[1f4846d]9import { CoreModule } from './shared/core.module';
[ee137aa]10
[1f4846d]11import { AuthGuard } from './shared/guards/auth.guard';
[ad60966]12import { DataService } from './shared/data.service';
[30a465f]13import { AppComponent } from './app.component';
14import { NavMenuComponent } from './nav-menu/nav-menu.component';
15import { HomeComponent } from './home/home.component';
16import { CounterComponent } from './counter/counter.component';
[ec6ac45]17import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
18import { KoronaComponent } from './korona/korona.component';
[785b8bd]19import { AdminComponent } from './admin/admin.component';
20import { DashboardComponent } from './dashboard/dashboard.component';
21import { LoginComponent } from './login/login.component';
[ee137aa]22import { MedicineDialogComponent } from './dialogs/medicine-dialog/medicine-dialog.component';
23import { PharmacyDialogComponent } from './dialogs/pharmacy-dialog/pharmacy-dialog.component';
24import { FacilityDialogComponent } from './dialogs/facility-dialog/facility-dialog.component';
25import { WorkerDialogComponent } from './dialogs/worker-dialog/worker-dialog.component';
26import { EditPharmacyDialogComponent } from './dialogs/edit-pharmacy-dialog/edit-pharmacy-dialog.component';
27import { EditPharmacyHeadDialogComponent } from './dialogs/edit-pharmacy-head-dialog/edit-pharmacy-head-dialog.component';
[8e74e2f]28import { PharmacyHeadDialogComponent } from './dialogs/pharmacy-head-dialog/pharmacy-head-dialog.component';
29import { AddMedicineDialogComponent } from './dialogs/add-medicine-dialog/add-medicine-dialog.component';
30import { ListMedicinesDialogComponent } from './dialogs/list-medicines-dialog/list-medicines-dialog.component';
[30a465f]31
32@NgModule({
33 declarations: [
34 AppComponent,
35 NavMenuComponent,
36 HomeComponent,
37 CounterComponent,
[785b8bd]38 KoronaComponent,
39 AdminComponent,
40 DashboardComponent,
[ee137aa]41 LoginComponent,
42 MedicineDialogComponent,
43 PharmacyDialogComponent,
44 FacilityDialogComponent,
45 WorkerDialogComponent,
46 EditPharmacyDialogComponent,
47 EditPharmacyHeadDialogComponent,
[8e74e2f]48 PharmacyHeadDialogComponent,
49 AddMedicineDialogComponent,
50 ListMedicinesDialogComponent
[30a465f]51 ],
52 imports: [
53 BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
54 HttpClientModule,
55 FormsModule,
56 RouterModule.forRoot([
57 { path: '', component: HomeComponent, pathMatch: 'full' },
[ec6ac45]58 { path: 'mapa', component: CounterComponent },
[785b8bd]59 { path: 'koronavirus', component: KoronaComponent },
[1f4846d]60 { path: 'admin', component: AdminComponent, canActivate: [AuthGuard] },
[993189e]61 { path: 'dashboard', component: DashboardComponent, canActivate: [AuthGuard] },
[785b8bd]62 { path: 'login', component: LoginComponent }
[ec6ac45]63 ]),
[785b8bd]64 BrowserAnimationsModule,
65 MaterialModule,
[1f4846d]66 ReactiveFormsModule,
67 CoreModule
[30a465f]68 ],
[ee137aa]69 providers: [
70 DataService
71 ],
[30a465f]72 bootstrap: [AppComponent]
73})
74export class AppModule { }
Note: See TracBrowser for help on using the repository browser.