Created
July 27, 2018 16:44
-
-
Save NishuGoel/f4381fbb870074df00b09cc6957b3252 to your computer and use it in GitHub Desktop.
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 } 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