aurelia-tabs
Version:
A dependency free tabs component for your Aurelia applications.
23 lines (18 loc) • 583 B
text/typescript
import {inject} from 'aurelia-dependency-injection';
import {bindable, customElement} from 'aurelia-templating';
export class TabSection {
private element: Element;
section = null;
viewModel;
viewContent;
constructor(element) {
this.element = element;
}
attached() {
if (this.element.getAttribute('default-section')) {
this.element.querySelector('.tab-sections__tab-section').classList.add('tab-sections__tab-section--active');
}
}
}