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>{{message}}</h2>
`
})
export class MessageComponent {
@Input() message: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment