528c7d7a47dcb74413654aee7e459f6cdb07c93a
[vid.git] / vid-webpack-master / src / app / app.component.ts
1 import {Component, Inject} from '@angular/core';
2
3 import { ApiService } from './shared';
4
5 import '../style/app.scss';
6 import {NgRedux} from "@angular-redux/store";
7 import {AppState} from "./store/reducers";
8 import { LogService } from './shared/utils/log/log.service';
9
10 @Component({
11   selector: 'vid-app', // <vid-app></vid-app>
12   templateUrl: './app.component.html',
13   styleUrls: ['./app.component.scss'],
14 })
15 export class AppComponent {
16   url = 'https://github.com/preboot/angular2-webpack';
17   title: string;
18
19
20   constructor(private api: ApiService, private store: NgRedux<AppState>, private _logService : LogService) {
21     this.title = this.api.title;
22     store.subscribe(()=>{
23       sessionStorage.setItem('reduxState', JSON.stringify(store.getState()));
24     });
25
26     this._logService.info("testing new log service");
27   }
28 }