UNPKG

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
import {inject} from 'aurelia-dependency-injection'; import {customElement, bindable, noView, processContent, TargetInstruction} from 'aurelia-templating'; import {constants} from '../common/constants'; @customElement(`${constants.elementPrefix}notification-template`) @noView() @processContent((compiler, resources, element, instruction) => { let html = element.innerHTML; if (html !== '') { instruction.template = html; } return true; }) @inject(TargetInstruction) export class NotificationTemplate { @bindable template; @bindable type; constructor(targetInstruction) { this.template = targetInstruction.elementInstruction.template; } }