blob: 4e9327500de4a9c1387a5ec6a93823a1894fc1ce [file] [log] [blame]
Matteo Scandolod819c922016-12-02 14:06:14 -08001import {NgModule} from '@angular/core';
2import {BrowserModule} from '@angular/platform-browser';
Matteo Scandolo43ffb672016-12-02 14:49:58 -08003import {HttpModule} from '@angular/http';
4import {FormsModule} from '@angular/forms';
5import {CookieService} from 'angular2-cookie/services/cookies.service';
6
Matteo Scandolod819c922016-12-02 14:06:14 -08007import {routing, RootComponent} from './routes';
8
9import {HelloComponent} from './hello';
Matteo Scandolo43ffb672016-12-02 14:49:58 -080010import {LoginComponent} from './components/login/login.component';
11import {ProtectedDirective} from './directives/protected.directive';
Matteo Scandolod819c922016-12-02 14:06:14 -080012
13@NgModule({
14 imports: [
15 BrowserModule,
Matteo Scandolo43ffb672016-12-02 14:49:58 -080016 FormsModule,
17 routing,
18 HttpModule
Matteo Scandolod819c922016-12-02 14:06:14 -080019 ],
20 declarations: [
21 RootComponent,
Matteo Scandolo43ffb672016-12-02 14:49:58 -080022 HelloComponent,
23 LoginComponent,
24 ProtectedDirective
Matteo Scandolod819c922016-12-02 14:06:14 -080025 ],
Matteo Scandolo43ffb672016-12-02 14:49:58 -080026 providers: [CookieService],
Matteo Scandolod819c922016-12-02 14:06:14 -080027 bootstrap: [RootComponent]
28})
29export class AppModule {}