parent
915de49863
commit
7a43e0a548
|
@ -4,7 +4,7 @@ import { HeroButtonComponent } from './heroes/shared/hero-button/hero-button.com
|
|||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
template: '<toh-hero-button></toh-hero-button>',
|
||||
template: '<toh-hero-button label="OK"></toh-hero-button>',
|
||||
directives: [HeroButtonComponent]
|
||||
})
|
||||
export class AppComponent { }
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|||
// #docregion example
|
||||
@Component({
|
||||
selector: 'toh-hero-button',
|
||||
template: `<button>OK</button>`
|
||||
template: `<button>{{label}}</button>`
|
||||
})
|
||||
export class HeroButtonComponent {
|
||||
@Output() change = new EventEmitter<any>();
|
||||
|
|
Loading…
Reference in New Issue