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

Last change on this file since de18858 was de18858, checked in by Mile Jankuloski <mile.jankuloski@…>, 2 years ago

Prepared and improved components for data flows

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