blob: b44673a82341d9b86b5758a80afc048fe01dc280 [file] [log] [blame]
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {HttpModule} from '@angular/http';
import {FormsModule} from '@angular/forms';
import {CookieService} from 'angular2-cookie/services/cookies.service';
import {routing, RootComponent} from './routes';
// registering components
import {HelloComponent} from './hello';
import {LoginComponent} from './components/login/login.component';
import {LogoutComponent} from './components/logout/logout.component';
// registering directives
import {ProtectedDirective} from './directives/protected.directive';
// registering services
import {AuthService} from './services/rest/auth.service';
import {XosHttp} from './services/rest/xoshttp.service';
import {InstanceService} from './services/rest/instance.service';
import {GlobalEvent} from './services/websockets/websocket.global';
@NgModule({
imports: [
BrowserModule,
FormsModule,
routing,
HttpModule
],
declarations: [
RootComponent,
HelloComponent,
LoginComponent,
LogoutComponent,
ProtectedDirective
],
providers: [
CookieService,
AuthService,
XosHttp,
InstanceService,
GlobalEvent
],
bootstrap: [RootComponent]
})
export class AppModule {}