Created
June 20, 2018 06:22
-
-
Save JiaLiPassion/3b918ce512b730c0efc35f7efc6812c8 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, Input } from '@angular/core'; | |
@Component({ | |
selector: 'app-hello', | |
template: `<div>{{name}}</div>` | |
}) | |
export class HelloComponent { | |
@Input() name: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment