Last active
March 6, 2018 23:19
-
-
Save b-tiwari/786842040157de245b2145988bd322e8 to your computer and use it in GitHub Desktop.
angular @input example child component v1
This file contains 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'; | |
import { Item } from '../../models'; | |
@Component({ | |
selector: 'item-details', | |
templateUrl: 'item-details.html' | |
}) | |
export class ItemDetails { | |
@Input() item: Item; | |
constructor(){} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment