Last active
January 15, 2017 07:03
-
-
Save gumpnart/874f4e4daea36964a9f6bfa940d40405 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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