angular-jsf-components
Version:
JSF Compliant Angular Components
16 lines (14 loc) • 493 B
text/typescript
import {ContentChildren, QueryList} from '@angular/core';
import {UiDefineComponent} from '../components/ui-define/ui-define.component';
export abstract class UiComposition {
sections: QueryList<UiDefineComponent>;
getSection(name: string): UiDefineComponent {
for (const section of this.sections.toArray()) {
if (section.name === name) {
return section;
}
}
return null;
}
}