source: Farmatiko/ClientApp/src/app/app.module.ts@ 30a465f

Last change on this file since 30a465f was 30a465f, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago

Initial commit

  • Property mode set to 100644
File size: 1.1 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';
6
7import { AppComponent } from './app.component';
8import { NavMenuComponent } from './nav-menu/nav-menu.component';
9import { HomeComponent } from './home/home.component';
10import { CounterComponent } from './counter/counter.component';
11import { FetchDataComponent } from './fetch-data/fetch-data.component';
12
13@NgModule({
14 declarations: [
15 AppComponent,
16 NavMenuComponent,
17 HomeComponent,
18 CounterComponent,
19 FetchDataComponent
20 ],
21 imports: [
22 BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
23 HttpClientModule,
24 FormsModule,
25 RouterModule.forRoot([
26 { path: '', component: HomeComponent, pathMatch: 'full' },
27 { path: 'counter', component: CounterComponent },
28 { path: 'fetch-data', component: FetchDataComponent },
29 ])
30 ],
31 providers: [],
32 bootstrap: [AppComponent]
33})
34export class AppModule { }
Note: See TracBrowser for help on using the repository browser.