import { Component } from '@angular/core' ; import { FooterService } from '../../services/footer.service' ; @ Component ( { selector : 'app-footer' , styleUrls : [ './app-footer.component.css' ] , templateUrl : './app-footer.component.html' } ) export class AppFooterComponent { public footer : any = { } ; constructor ( private footerServ ) { this . footerServ . getCurrent ( ) . subscribe ( footer => this . footer = footer ) ; } }