/** * created by Menna */ import { Component, Input, OnInit, Output, EventEmitter, ComponentRef } from '@angular/core'; @Component({ selector: 'localized-component', templateUrl: './localized-component.html', styleUrls: ['localized-component.css'], }) export class LocalizedComponent implements OnInit { @Input() lang:any; @Input() public removeCallback: Function; @Input() idDiv : string; @Input() modelInput ; ref:ComponentRef; ngOnInit() { } constructor() { } removeLocalizedString(e) { this.removeCallback(this); } destroyinstance(){ this.ref.destroy(); } }