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
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';
[28d7d35]8import { LeafletModule } from '@asymmetrik/ngx-leaflet';
[30a465f]9
[1f4846d]10import { CoreModule } from './shared/core.module';
[ee137aa]11
[1f4846d]12import { AuthGuard } from './shared/guards/auth.guard';
[ad60966]13import { DataService } from './shared/data.service';
[30a465f]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';
[ec6ac45]18import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
19import { KoronaComponent } from './korona/korona.component';
[785b8bd]20import { AdminComponent } from './admin/admin.component';
21import { DashboardComponent } from './dashboard/dashboard.component';
22import { LoginComponent } from './login/login.component';
[ee137aa]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';
[8e74e2f]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';
[30a465f]32
33@NgModule({
34 declarations: [
35 AppComponent,
36 NavMenuComponent,
37 HomeComponent,
38 CounterComponent,
[785b8bd]39 KoronaComponent,
40 AdminComponent,
41 DashboardComponent,
[ee137aa]42 LoginComponent,
43 MedicineDialogComponent,
44 PharmacyDialogComponent,
45 FacilityDialogComponent,
46 WorkerDialogComponent,
47 EditPharmacyDialogComponent,
48 EditPharmacyHeadDialogComponent,
[8e74e2f]49 PharmacyHeadDialogComponent,
50 AddMedicineDialogComponent,
51 ListMedicinesDialogComponent
[30a465f]52 ],
53 imports: [
54 BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
55 HttpClientModule,
56 FormsModule,
57 RouterModule.forRoot([
58 { path: '', component: HomeComponent, pathMatch: 'full' },
[ec6ac45]59 { path: 'mapa', component: CounterComponent },
[785b8bd]60 { path: 'koronavirus', component: KoronaComponent },
[1f4846d]61 { path: 'admin', component: AdminComponent, canActivate: [AuthGuard] },
[993189e]62 { path: 'dashboard', component: DashboardComponent, canActivate: [AuthGuard] },
[785b8bd]63 { path: 'login', component: LoginComponent }
[ec6ac45]64 ]),
[785b8bd]65 BrowserAnimationsModule,
66 MaterialModule,
[1f4846d]67 ReactiveFormsModule,
[28d7d35]68 LeafletModule,
[1f4846d]69 CoreModule
[30a465f]70 ],
[ee137aa]71 providers: [
72 DataService
73 ],
[30a465f]74 bootstrap: [AppComponent]
75})
76export class AppModule { }
Note: See TracBrowser for help on using the repository browser.