import { Component, Input } from '@angular/core';
import { Http, Response } from '@angular/http';
import { AppConfigService } from '../../services/app-config.service'

@Component({
    selector: 'app-footer',
    templateUrl: './footer.component.html'
})
export class FooterComponent {

    protected siteUrl: string = null;
    protected siteName: string = null;
    protected version: string = null;
    protected build: string = null;

    constructor(private appConfig: AppConfigService) {
        this.siteUrl = appConfig.footerUrl;
        this.siteName = appConfig.footerName;
        this.version = appConfig.version;
        this.build = appConfig.build;
    }
}
import { Component, Input } from '@angular/core';
import { Http, Response } from '@angular/http';
import { AppConfigService } from '../../services/app-config.service'

@Component({
    selector: 'app-footer',
    templateUrl: './footer.component.html'
})
export class FooterComponent {

    protected siteUrl: string = null;
    protected siteName: string = null;
    protected version: string = null;
    protected build: string = null;

    constructor(private appConfig: AppConfigService) {
        this.siteUrl = appConfig.footerUrl;
        this.siteName = appConfig.footerName;
        this.version = appConfig.version;
        this.build = appConfig.build.substr(0, 7);
    }
}
Build number should have max 7 chars.
Build number should have max 7 chars.
