import { Component , OnInit , Output , Input , EventEmitter } from '@angular/core' ; @ Component ( { selector : 'app-panel-footer' , templateUrl : './panel-footer.component.html' , styleUrls : [ './panel-footer.component.scss' ] } ) export class PanelFooterComponent implements OnInit { constructor ( ) { } @ Input ( ) selection ; @ Input ( ) buttonPrimaryLabel ; @ Input ( ) buttonSecondaryLabel ; @ Output ( ) buttonPrimaryClick = new EventEmitter ( ) ; @ Output ( ) buttonSecondaryClick = new EventEmitter ( ) ; onButtonSecondaryClickInner ( $event ) { this . buttonSecondaryClick . emit ( ) ; } onButtonPrimaryClickInner ( $event ) { this . buttonPrimaryClick . emit ( ) ; } ngOnInit ( ) { } clearSelection ( ) { let i = this . selection . length ; for ( let j = 0 ; j < i ; j += 1 ) { this . selection . pop ( ) ; } } }