{"size": 537, "ext": "js", "max_stars_repo_path": "node_modules/aurelia-templating-resources/dist/es2015/dynamic-element.js", "max_stars_repo_name": "andela-mbabalola/contact-manager", "max_stars_repo_stars_event_min_datetime": "2017-04-21T17:15:20.000Z", "max_stars_repo_stars_event_max_datetime": "2017-04-21T17:15:20.000Z", "max_issues_repo_path": "node_modules/aurelia-templating-resources/dist/es2015/dynamic-element.js", "max_issues_repo_name": "andela-mbabalola/contact-manager", "max_issues_repo_issues_event_min_datetime": "2017-08-01T01:16:32.000Z", "max_issues_repo_issues_event_max_datetime": "2017-08-01T01:16:32.000Z", "max_forks_repo_path": "node_modules/aurelia-templating-resources/dist/es2015/dynamic-element.js", "max_forks_repo_name": "andela-mbabalola/contact-manager", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 33.5625, "max_line_length": 129, "alphanum_fraction": 0.6927374302}

import { useView, customElement, bindable } from 'aurelia-templating';
export function _createDynamicElement(name, viewUrl, bindableNames) {
  var _dec, _dec2, _class;

  let DynamicElement = (_dec = customElement(name), _dec2 = useView(viewUrl), _dec(_class = _dec2(_class = class DynamicElement {
    bind(bindingContext) {
      this.$parent = bindingContext;
    }
  }) || _class) || _class);

  for (let i = 0, ii = bindableNames.length; i < ii; ++i) {
    bindable(bindableNames[i])(DynamicElement);
  }
  return DynamicElement;
}