2016-02-02 14:39:34 +01:00
|
|
|
// #docregion
|
2016-05-03 14:06:32 +02:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
|
2016-02-02 14:39:34 +01:00
|
|
|
@Component({
|
|
|
|
selector: 'name-parent',
|
|
|
|
template: `
|
2016-11-29 15:39:53 -08:00
|
|
|
<h2>Master controls {{names.length}} names</h2>
|
|
|
|
<name-child *ngFor="let name of names" [name]="name"></name-child>
|
2016-08-09 17:38:25 +01:00
|
|
|
`
|
2016-02-02 14:39:34 +01:00
|
|
|
})
|
|
|
|
export class NameParentComponent {
|
|
|
|
// Displays 'Mr. IQ', '<no name set>', 'Bombasto'
|
|
|
|
names = ['Mr. IQ', ' ', ' Bombasto '];
|
|
|
|
}
|
|
|
|
// #enddocregion
|