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

Last change on this file since e42f61a was 785b8bd, checked in by Mile Jankuloski <mile.jankuloski@…>, 4 years ago

Dashboards v0.1

  • Property mode set to 100644
File size: 1.9 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';
8
9import { AppComponent } from './app.component';
10import { NavMenuComponent } from './nav-menu/nav-menu.component';
11import { HomeComponent } from './home/home.component';
12import { CounterComponent } from './counter/counter.component';
13import { FetchDataComponent } from './fetch-data/fetch-data.component';
14import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
15import { KoronaComponent } from './korona/korona.component';
16import { AdminComponent } from './admin/admin.component';
17import { DashboardComponent } from './dashboard/dashboard.component';
18import { LoginComponent } from './login/login.component';
19
20@NgModule({
21 declarations: [
22 AppComponent,
23 NavMenuComponent,
24 HomeComponent,
25 CounterComponent,
26 FetchDataComponent,
27 KoronaComponent,
28 AdminComponent,
29 DashboardComponent,
30 LoginComponent
31 ],
32 imports: [
33 BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
34 HttpClientModule,
35 FormsModule,
36 RouterModule.forRoot([
37 { path: '', component: HomeComponent, pathMatch: 'full' },
38 { path: 'mapa', component: CounterComponent },
39 { path: 'fetch-data', component: FetchDataComponent },
40 { path: 'koronavirus', component: KoronaComponent },
41 { path: 'admin', component: AdminComponent },
42 { path: 'dashboard', component: DashboardComponent },
43 { path: 'login', component: LoginComponent }
44 ]),
45 BrowserAnimationsModule,
46 MaterialModule,
47 ReactiveFormsModule
48 ],
49 providers: [],
50 bootstrap: [AppComponent]
51})
52export class AppModule { }
Note: See TracBrowser for help on using the repository browser.