diff options
author | crupest <crupest@outlook.com> | 2019-02-04 23:25:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-02-04 23:25:33 +0800 |
commit | 4fea4164fad943eebc1850042994fdbaad3682f9 (patch) | |
tree | 36522d986769b0520afd53a791674644305a1dd1 /Timeline/ClientApp/src/app/app.module.ts | |
download | timeline-4fea4164fad943eebc1850042994fdbaad3682f9.tar.gz timeline-4fea4164fad943eebc1850042994fdbaad3682f9.tar.bz2 timeline-4fea4164fad943eebc1850042994fdbaad3682f9.zip |
Init commit.
Diffstat (limited to 'Timeline/ClientApp/src/app/app.module.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/app.module.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Timeline/ClientApp/src/app/app.module.ts b/Timeline/ClientApp/src/app/app.module.ts new file mode 100644 index 00000000..c16d8bae --- /dev/null +++ b/Timeline/ClientApp/src/app/app.module.ts @@ -0,0 +1,26 @@ +import { BrowserModule } from '@angular/platform-browser'; +import { NgModule } from '@angular/core'; +import { FormsModule } from '@angular/forms'; +import { HttpClientModule } from '@angular/common/http'; +import { RouterModule } from '@angular/router'; + +import { AppComponent } from './app.component'; +import { HomeComponent } from './home/home.component'; + +@NgModule({ + declarations: [ + AppComponent, + HomeComponent + ], + imports: [ + BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }), + HttpClientModule, + FormsModule, + RouterModule.forRoot([ + { path: '', component: HomeComponent, pathMatch: 'full' } + ]) + ], + providers: [], + bootstrap: [AppComponent] +}) +export class AppModule { } |