import { Component , ElementRef , EventEmitter , Input , OnDestroy , OnInit , Output , ViewChild } from '@angular/core' ; import { SearchBarTag } from './search-bar-tag' ; @ Component ( { selector : 'cmdb-search-bar-tags' , templateUrl : './search-bar-tag.component.html' , styleUrls : [ './search-bar-tag.component.scss' ] } ) export class SearchBarTagComponent { @ ViewChild ( 'dropdownTrigger' ) dropdownTrigger : ElementRef ; @ Input ( ) public tag : SearchBarTag ; @ Output ( ) public changeEmitter : EventEmitter < SearchBarTag > ; @ Output ( ) public deleteEmitter : EventEmitter < SearchBarTag > ; public constructor ( ) { /**
         * Default constructor
         * Change form is deactivated
         */ this . changeEmitter = new EventEmitter < SearchBarTag > ( ) ; this . deleteEmitter = new EventEmitter < SearchBarTag > ( ) ; } public emitDelete ( ) { this . deleteEmitter . emit ( this . tag ) ; } }