blob: 528c7d7a47dcb74413654aee7e459f6cdb07c93a [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001import {Component, Inject} from '@angular/core';
2
3import { ApiService } from './shared';
4
5import '../style/app.scss';
6import {NgRedux} from "@angular-redux/store";
7import {AppState} from "./store/reducers";
8import { 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})
15export 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}