import { customAttribute , inject } from 'aurelia-framework' ; selector @ inject ( Element ) @ customAttribute ( 'mdc-elevation' ) export class MdcElevation { constructor ( private root ) { } value : string ; valueChanged ( newValue , oldValue ) { if ( oldValue ) { this . root . classList . add ( `mdc-elevation--z${ oldValue }` ) ; } else { this . root . classList . add ( `mdc-elevation--z${ newValue }` ) ; } } }