Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created June 5, 2018 07:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save debugmodedotnet/7c9c332464d95c94b763d342b940cc7d to your computer and use it in GitHub Desktop.
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