import { Component , OnInit } from '@angular/core' ; import * as titleAction from '../actions/title' ; import { Store } from '@ngrx/store' ; import * as fromRoot from '../reducers' ; import { defaultUrlConfig } from '../shared/url-config' ; import { defaultImageurlConfig } from '../shared/url-config' ; @ Component ( { selector : 'app-about' , templateUrl : './about.component.html' , styleUrls : [ './about.component.scss' ] } ) export class AboutComponent implements OnInit { public configUrl = defaultUrlConfig ; public imageUrl = defaultImageurlConfig ; constructor ( private store ) { } ngOnInit ( ) { this . store . dispatch ( new titleAction . SetTitleAction ( 'About Loklak' ) ) ; } }