import { Component , OnInit , Input , Output , EventEmitter } from '@angular/core' ; @ Component ( { selector : 'app-modal-wrapper' , templateUrl : './modal-wrapper.component.html' , styleUrls : [ './modal-wrapper.component.scss' ] } ) export class ModalWrapperComponent implements OnInit { constructor ( ) { } @ Input ( ) classInner = '' ; private _show = true ; @ Output ( ) showChange = new EventEmitter ( ) ; @ Input ( ) set show ( value ) { console . log ( 'change' ) ; this . _show = value ; this . showChange . emit ( this . _show ) ; } get show ( ) { return this . _show ; } @ Input ( ) overlay = false ; private _loader = false ; @ Output ( ) loaderChange = new EventEmitter ( ) ; @ Input ( ) set loader ( value ) { this . _loader = value ; this . loaderChange . emit ( this . _loader ) ; } get loader ( ) { return this . _loader ; } ngOnInit ( ) { } }