Skip to content

Instantly share code, notes, and snippets.

@NishuGoel
Created July 27, 2018 16:44
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 NishuGoel/f4381fbb870074df00b09cc6957b3252 to your computer and use it in GitHub Desktop.
Save NishuGoel/f4381fbb870074df00b09cc6957b3252 to your computer and use it in GitHub Desktop.
import {Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<h1>Hello {{pmessage}}</h1>
<appchild [message]="cmessage"></appchild>
`
})
export class AppComponent {
pmessage : string = "I am Parent";
cmessage : string = "I came from Parent to child";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment