import { viewEngineHooks } from 'aurelia-framework' ; @ viewEngineHooks export class EnhanceMdcFab { beforeCompile ( template ) { const actions = template . querySelectorAll ( '[mdc-fab]' ) ; for ( const i of Array . from ( actions ) ) { i . setAttribute ( 'as-element' , 'mdc-fab' ) ; } } }