import { Component , Input , OnInit , ChangeDetectionStrategy } from '@angular/core' ; import { MapperService } from '../../../../services/mapper.service' ; @ Component ( { selector : 'g[svg-mouse-click-key]' , templateUrl : './svg-mouse-click-key.html' , changeDetection : ChangeDetectionStrategy . OnPush } ) export class SvgMouseClickKeyComponent { @ Input ( ) button : string ; icon : string ; constructor ( private mapper ) { this . icon = this . mapper . getIcon ( 'mouse' ) ; } }