import {Component, EventEmitter, Input, OnInit, Output,} from '@angular/core'; @Component({ selector: 'border', template: `
Border radius (px)
Border width (px)
` }) export class BorderComponent implements OnInit { @Input() radius: number = 0; @Input() width: number = 0; @Input() style = 'solid'; @Input() radiusPublished: number = 0; @Input() widthPublished: number = 0; @Input() stylePublished = 'solid'; @Output() borderChange = new EventEmitter(); constructor() { } ngOnInit() { } borderChanged() { console.log(this.radius); this.borderChange.emit({radius: this.radius, width: this.width, style: this.style}); } }