The Exc-Controls module provides some custom controls, interfaces and services, validators and classes for creating an web application in our default behavior.
<lib-exc-accordion #acc1 [singleMode]="true">
<lib-exc-accordion-panel label="panel1" [checked]="true"></lib-exc-accordion-panel>
<lib-exc-accordion-panel label="panel2"></lib-exc-accordion-panel>
<lib-exc-accordion-panel label="panel3"></lib-exc-accordion-panel>
</lib-exc-accordion>
import {ViewChild} from '@angular/core';
import {ExcAccordionComponent} from 'exc-controls';
//...
export class CustomComponent{
@ViewChild('acc1',{read:ExcAccordionComponent}) acc1:ExcAccordionComponent;
close(){
this.acc1.closeAll();
}
}