import {Component, EventEmitter, Input, OnInit, Output,} from '@angular/core';
@Component({
selector: 'font-size',
template: `
Font:
`
})
export class FontSizeComponent implements OnInit {
@Input() font="";
@Input() size:number;
@Input() weight:number;
@Output() fontChange = new EventEmitter();
constructor( ) {
}
ngOnInit() {
}
fontChanged() {
console.log({font:this.font, size:this.size, weight:this.weight});
this.fontChange.emit({font:this.font, size:this.size, weight:this.weight});
}
}