Last active
August 6, 2017 03:08
-
-
Save karthikchintala1/7ffdae5984cc9c15c4e56466094e5b8e to your computer and use it in GitHub Desktop.
passing data from one component to another in angular. More info http://angularman.wordpress.com
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: ` | |
<child-comp [parentCount]="count"></child-comp> | |
` | |
}) | |
export class App { | |
count: number = 10; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment