Mercurial > hg > ugly-duckling
annotate src/app/app.module.ts @ 3:b4a1e0a67389
Playing around with material2
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 26 Oct 2016 11:42:58 +0100 |
parents | 44c99e3cb108 |
children | 8d82412dfd50 |
rev | line source |
---|---|
angular-cli@0 | 1 import { BrowserModule } from '@angular/platform-browser'; |
angular-cli@0 | 2 import { NgModule } from '@angular/core'; |
angular-cli@0 | 3 import { FormsModule } from '@angular/forms'; |
angular-cli@0 | 4 import { HttpModule } from '@angular/http'; |
angular-cli@0 | 5 |
angular-cli@0 | 6 import { AppComponent } from './app.component'; |
dev@1 | 7 import { SimpleFormComponent } from './simple-form/simple-form.component'; |
dev@1 | 8 import {MailService} from "./mail.service"; |
dev@3 | 9 import {MaterialModule} from "@angular/material"; |
angular-cli@0 | 10 |
angular-cli@0 | 11 @NgModule({ |
angular-cli@0 | 12 declarations: [ |
dev@1 | 13 AppComponent, |
dev@1 | 14 SimpleFormComponent |
angular-cli@0 | 15 ], |
angular-cli@0 | 16 imports: [ |
angular-cli@0 | 17 BrowserModule, |
angular-cli@0 | 18 FormsModule, |
dev@3 | 19 HttpModule, |
dev@3 | 20 MaterialModule.forRoot() |
angular-cli@0 | 21 ], |
dev@1 | 22 providers: [ |
dev@1 | 23 MailService, |
dev@1 | 24 {provide: 'piper-server-uri', useValue: 'ws://not/a/real/path'} |
dev@1 | 25 ], |
angular-cli@0 | 26 bootstrap: [AppComponent] |
angular-cli@0 | 27 }) |
dev@1 | 28 export class AppModule { |
dev@1 | 29 |
dev@1 | 30 } |