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 | 8b9f164 | 2016-12-05 17:08:26 -0800 | [diff] [blame^] | 12 | import {LogoutComponent} from './components/logout/logout.component.ts'; |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 13 | |
| 14 | @NgModule({ |
| 15 | imports: [ |
| 16 | BrowserModule, |
Matteo Scandolo | 43ffb67 | 2016-12-02 14:49:58 -0800 | [diff] [blame] | 17 | FormsModule, |
| 18 | routing, |
| 19 | HttpModule |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 20 | ], |
| 21 | declarations: [ |
| 22 | RootComponent, |
Matteo Scandolo | 43ffb67 | 2016-12-02 14:49:58 -0800 | [diff] [blame] | 23 | HelloComponent, |
| 24 | LoginComponent, |
Matteo Scandolo | 8b9f164 | 2016-12-05 17:08:26 -0800 | [diff] [blame^] | 25 | LogoutComponent, |
Matteo Scandolo | 43ffb67 | 2016-12-02 14:49:58 -0800 | [diff] [blame] | 26 | ProtectedDirective |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 27 | ], |
Matteo Scandolo | 43ffb67 | 2016-12-02 14:49:58 -0800 | [diff] [blame] | 28 | providers: [CookieService], |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 29 | bootstrap: [RootComponent] |
| 30 | }) |
| 31 | export class AppModule {} |