text: /* */ 
  define(['exports', 'aurelia-templating'], function (exports, _aureliaTemplating) {
    'use strict';
  
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports._createDynamicElement = _createDynamicElement;
  
    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) {
        throw new TypeError("Cannot call a class as a function");
      }
    }
  
    function _createDynamicElement(name, viewUrl, bindableNames) {
      var _dec, _dec2, _class;
  
      var DynamicElement = (_dec = (0, _aureliaTemplating.customElement)(name), _dec2 = (0, _aureliaTemplating.useView)(viewUrl), _dec(_class = _dec2(_class = function () {
        function DynamicElement() {
          _classCallCheck(this, DynamicElement);
        }
  
        DynamicElement.prototype.bind = function bind(bindingContext) {
          this.$parent = bindingContext;
        };
  
        return DynamicElement;
      }()) || _class) || _class);
  
      for (var i = 0, ii = bindableNames.length; i < ii; ++i) {
        (0, _aureliaTemplating.bindable)(bindableNames[i])(DynamicElement);
      }
      return DynamicElement;
    }
  });