aurelia-kendoui-bridge
Version:
A set of Telerik KendoUI wrappers for Aurelia allowing developers to easily use KendoUI components in their Aurelia application.
23 lines (20 loc) • 687 B
JavaScript
import {inject} from 'aurelia-dependency-injection';
import {customElement, bindable, noView, processContent, TargetInstruction} from 'aurelia-templating';
import {constants} from '../common/constants';
(`${constants.elementPrefix}notification-template`)
()
((compiler, resources, element, instruction) => {
let html = element.innerHTML;
if (html !== '') {
instruction.template = html;
}
return true;
})
(TargetInstruction)
export class NotificationTemplate {
template;
type;
constructor(targetInstruction) {
this.template = targetInstruction.elementInstruction.template;
}
}