aurelia-onsenui
Version:
Aurelia bindings for Onsen UI
19 lines (15 loc) • 402 B
JavaScript
import {inject} from 'aurelia-dependency-injection';
import {DOM} from 'aurelia-pal';
import {customElement, noView, bindable} from 'aurelia-templating';
('ons-icon')
(DOM.Element)
export class OnsIcon {
icon;
constructor(element) {
this.element = element;
}
iconChanged(newValue, oldValue) {
this.element.setAttribute('icon', newValue);
}
}