Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import {Component } from '@angular/core';
import {AppChildComponent} from './appchild.component';
selector: 'my-app',
template: `<h1>Hello {{message}}</h1> <br/>
<appchild [greetMessage]="childmessage"></appchild>
export class AppComponent {
message : string = "I am Parent";
childmessage : string = "I am passed from Parent to child component"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.