Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 1 | import {NgModule} from '@angular/core'; |
| 2 | import {BrowserModule} from '@angular/platform-browser'; |
Matteo Scandolo | 43ffb67 | 2016-12-02 14:49:58 -0800 | [diff] [blame] | 3 | import {HttpModule} from '@angular/http'; |
| 4 | import {FormsModule} from '@angular/forms'; |
| 5 | import {CookieService} from 'angular2-cookie/services/cookies.service'; |
| 6 | |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 7 | import {routing, RootComponent} from './routes'; |
| 8 | |
| 9 | import {HelloComponent} from './hello'; |
Matteo Scandolo | 43ffb67 | 2016-12-02 14:49:58 -0800 | [diff] [blame] | 10 | import {LoginComponent} from './components/login/login.component'; |
| 11 | import {ProtectedDirective} from './directives/protected.directive'; |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 12 | |
| 13 | @NgModule({ |
| 14 | imports: [ |
| 15 | BrowserModule, |
Matteo Scandolo | 43ffb67 | 2016-12-02 14:49:58 -0800 | [diff] [blame] | 16 | FormsModule, |
| 17 | routing, |
| 18 | HttpModule |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 19 | ], |
| 20 | declarations: [ |
| 21 | RootComponent, |
Matteo Scandolo | 43ffb67 | 2016-12-02 14:49:58 -0800 | [diff] [blame] | 22 | HelloComponent, |
| 23 | LoginComponent, |
| 24 | ProtectedDirective |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 25 | ], |
Matteo Scandolo | 43ffb67 | 2016-12-02 14:49:58 -0800 | [diff] [blame] | 26 | providers: [CookieService], |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 27 | bootstrap: [RootComponent] |
| 28 | }) |
| 29 | export class AppModule {} |