Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created December 13, 2016 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugmodedotnet/bb6ff786e5c096dd58043fc52a83c787 to your computer and use it in GitHub Desktop.
Save debugmodedotnet/bb6ff786e5c096dd58043fc52a83c787 to your computer and use it in GitHub Desktop.
import { Component,Input,OnInit } from '@angular/core';
@Component({
selector: 'appchild',
template: `<h2>Hi {{greetMessage}}</h2>`
})
export class AppChildComponent implements OnInit{
@Input() greetMessage: string ;
constructor(){
}
ngOnInit(){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment