UNPKG

@aurelia-mdc-web/switch

Version:

Wrapper for Material Components Web Switch

15 lines 505 B
import { __decorate } from "tslib"; import { viewEngineHooks } from 'aurelia-framework'; let EnhanceMdcSwitch = class EnhanceMdcSwitch { beforeCompile(template) { const actions = template.querySelectorAll('[mdc-switch]'); for (const i of Array.from(actions)) { i.setAttribute('as-element', 'mdc-switch'); } } }; EnhanceMdcSwitch = __decorate([ viewEngineHooks ], EnhanceMdcSwitch); export { EnhanceMdcSwitch }; //# sourceMappingURL=enhance-mdc-switch.js.map