import {Component, EventEmitter, Input, OnInit, Output,} from '@angular/core'; @Component({ selector: 'color', template: `
{{label}}:
` }) export class ColorComponent implements OnInit { @Input() color = 'white'; @Input() label = 'Color'; @Input() addMargin: boolean = false; @Output() colorChange = new EventEmitter(); constructor() { } ngOnInit() { } colorChanged() { this.colorChange.emit(this.color); } }