import { Component , OnInit } from '@angular/core' ; import { AboutService } from './about.service' ; import { Article } from '../../core' ; @ Component ( { selector : 'about' , templateUrl : './about.html' } ) export class AboutComponent implements OnInit { article : Article ; constructor ( private aboutService ) { } ngOnInit ( ) { this . aboutService . getArticle ( ) . subscribe ( result => this . article = result ) ; } }