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