Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-message',
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