Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import {Component, Input} from '@angular/core';
@Component({
selector: 'person',
template: '<h1>{{person.name}} {{person.lastname}}</h1>'
})
export class PersonComponent {
@Input()
person: any
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment