import {Component,OnInit,Input,Output,EventEmitter} from '@angular/core'; @Component({ selector: 'cm-menu-doc-4', templateUrl: './menu-doc-4.component.html', styleUrls: ['./menu-doc-4.component.css'] }) export class MenuDoc4Component implements OnInit { isOpenOne = true; isOpenTwo = false; isOpenThree = false; openChange(value:string) { if(value === 'one') { this.isOpenTwo = false; this.isOpenThree = false; } else if(value === 'two') { this.isOpenOne = false; this.isOpenThree = false; } else if(value === 'three') { this.isOpenOne = false; this.isOpenTwo = false; } } constructor() {} ngOnInit() {} }