import {Component, EventEmitter, Input, OnInit, Output,} from '@angular/core'; @Component({ selector: 'border', template: `
Radius:
Width:
Style:
` }) export class BorderComponent implements OnInit { @Input() radius:number =0; @Input() width:number =0; @Input() style = 'solid'; // @Input() addMargin: boolean = false; @Output() borderChange = new EventEmitter(); constructor() { } ngOnInit() { } borderChanged() { this.borderChange.emit({radius:this.radius, width:this.width, style:this.style}); } }