Skip to content

Instantly share code, notes, and snippets.

@gumpnart
Last active January 15, 2017 07:03
Show Gist options
  • Select an option

  • Save gumpnart/874f4e4daea36964a9f6bfa940d40405 to your computer and use it in GitHub Desktop.

Select an option

Save gumpnart/874f4e4daea36964a9f6bfa940d40405 to your computer and use it in GitHub Desktop.
import { Component, Input } from '@angular/core';
@Component({
selector: 'child-component',
template: `
<span>{{ value1 + ' + ' + value2 }}</span>
`
})
export class ChildComponent {
@Input() value1: number;
@Input() value2: number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment