Skip to content

Instantly share code, notes, and snippets.

@wKoza

wKoza/app.component.ts

Last active Dec 18, 2016
Embed
What would you like to do?
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<div>
<person [person]="character" *ngFor="let character of characters"></person>
</div>`
})
export class AppComponent {
characters = [ {name:'mickey', lastname:'mouse'},
{name:'donald',lastname:'duck'},
{name:'pat', lastname:'hibulaire'}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment