How to use the aurelia-templating.customElement function in aurelia-templating

To help you get started, we’ve selected a few aurelia-templating examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aurelia / templating-router / dist / es2015 / route-loader.js View on Github external
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;
}
github aurelia / templating-router / src / route-loader.js View on Github external
function createDynamicClass(moduleId) {
  let name = /([^\/^\?]+)\.html/i.exec(moduleId)[1];

  @customElement(name)
  @useView(moduleId)
  class DynamicClass {
    bind(bindingContext) {
      this.$parent = bindingContext;
    }
  }

  return DynamicClass;
}
github aurelia / templating-router / dist / aurelia-templating-router.js View on Github external
function createDynamicClass(moduleId) {
  let name = /([^\/^\?]+)\.html/i.exec(moduleId)[1];

  @customElement(name)
  @useView(moduleId)
  class DynamicClass {
    bind(bindingContext) {
      this.$parent = bindingContext;
    }
  }

  return DynamicClass;
}
github aurelia / templating-resources / dist / commonjs / aurelia-templating-resources.js View on Github external
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) {

aurelia-templating

An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis