source: Farmatiko/ClientApp/src/app/app.module.ts@ de9d697

Last change on this file since de9d697 was 28d7d35, checked in by Mile Jankuloski <mile.jankuloski@…>, 3 years ago

Maps, geolocation api, dialogs & more

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