Skip to content

Instantly share code, notes, and snippets.

@wKoza
Created December 17, 2016 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wKoza/815bfa20366470259abe3799da6de99c to your computer and use it in GitHub Desktop.
Save wKoza/815bfa20366470259abe3799da6de99c to your computer and use it in GitHub Desktop.
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