Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createDynamicClass(moduleId) {
var _dec3, _dec4, _class3;
let name = /([^\/^\?]+)\.html/i.exec(moduleId)[1];
let DynamicClass = (_dec3 = customElement(name), _dec4 = useView(moduleId), _dec3(_class3 = _dec4(_class3 = class DynamicClass {
bind(bindingContext) {
this.$parent = bindingContext;
}
}) || _class3) || _class3);
return DynamicClass;
}
function createDynamicClass(moduleId) {
let name = /([^\/^\?]+)\.html/i.exec(moduleId)[1];
@customElement(name)
@useView(moduleId)
class DynamicClass {
bind(bindingContext) {
this.$parent = bindingContext;
}
}
return DynamicClass;
}
function createDynamicClass(moduleId) {
let name = /([^\/^\?]+)\.html/i.exec(moduleId)[1];
@customElement(name)
@useView(moduleId)
class DynamicClass {
bind(bindingContext) {
this.$parent = bindingContext;
}
}
return DynamicClass;
}
var DynamicElement = (function () {
function DynamicElement() {
}
DynamicElement.prototype.bind = function (bindingContext) {
this.$parent = bindingContext;
};
DynamicElement = __decorate([
aureliaTemplating.customElement(name),
aureliaTemplating.useView(viewUrl)
], DynamicElement);
return DynamicElement;
}());
for (var i = 0, ii = bindableNames.length; i < ii; ++i) {