Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created June 27, 2016 05:52
Show Gist options
  • Save tkssharma/2419b2c8dfe8578abf03939b02b0a11a to your computer and use it in GitHub Desktop.
Save tkssharma/2419b2c8dfe8578abf03939b02b0a11a to your computer and use it in GitHub Desktop.
class OrderComponent {
@Input() stockSymbol: string;
@Input() quantity: number;
}
class PriceQuoterComponent {
@Output() lastPrice: EventEmitter<IPriceQuote> = new EventEmitter();
...
this.lastPrice.emit(priceQuote)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment