blob: af804d30bf1f644f53381ee57db3f5a5bb65cecc [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 Scandolo8b9f1642016-12-05 17:08:26 -080012import {LogoutComponent} from './components/logout/logout.component.ts';
Matteo Scandolod819c922016-12-02 14:06:14 -080013
14@NgModule({
15 imports: [
16 BrowserModule,
Matteo Scandolo43ffb672016-12-02 14:49:58 -080017 FormsModule,
18 routing,
19 HttpModule
Matteo Scandolod819c922016-12-02 14:06:14 -080020 ],
21 declarations: [
22 RootComponent,
Matteo Scandolo43ffb672016-12-02 14:49:58 -080023 HelloComponent,
24 LoginComponent,
Matteo Scandolo8b9f1642016-12-05 17:08:26 -080025 LogoutComponent,
Matteo Scandolo43ffb672016-12-02 14:49:58 -080026 ProtectedDirective
Matteo Scandolod819c922016-12-02 14:06:14 -080027 ],
Matteo Scandolo43ffb672016-12-02 14:49:58 -080028 providers: [CookieService],
Matteo Scandolod819c922016-12-02 14:06:14 -080029 bootstrap: [RootComponent]
30})
31export class AppModule {}