import { Component , OnInit , Input , Output , EventEmitter , HostListener } from '@angular/core' ; @ Component ( { selector : 'b-toggle' , templateUrl : './b-toggle.component.html' , styleUrls : [ './b-toggle.component.scss' ] , } ) export class BToggleComponent implements OnInit { @ Input ( ) color = "#389bee" ; @ Input ( ) switch : any = true ; @ Output ( ) stateChange = new EventEmitter ( ) ; constructor ( ) { } ngOnInit ( ) { } }