import { Component } from '@angular/core' ; import { PriceQuote } from './iprice.quote' ; @ Component ( { selector : 'app-root' , template : `
    AppComponent received: {{priceQuote?.stockSymbol}}
                           {{priceQuote?.lastPrice | currency:'USD'}}
   <price-quoter (lastPrice)="priceQuoteHandler($event)"></price-quoter>
    ` } ) export class AppComponent { priceQuote : PriceQuote ; priceQuoteHandler ( event ) { this . priceQuote = event ; } }