Created
June 5, 2018 07:40
-
-
Save debugmodedotnet/7c9c332464d95c94b763d342b940cc7d 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, ChangeDetectionStrategy } from '@angular/core'; | |
@Component({ | |
selector: 'app-message', | |
changeDetection: ChangeDetectionStrategy.OnPush, | |
template: ` | |
<h2> | |
Hey {{person.firstname}} {{person.lastname}} ! | |
</h2> | |
` | |
}) | |
export class MessageComponent { | |
@Input() person; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment