How to use the ember-ast-hot-load/utils/matchers.getRouteScopedComponents function in ember-ast-hot-load

To help you get started, we’ve selected a few ember-ast-hot-load 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 lifeart / ember-ast-hot-load / addon / services / hot-loader.js View on Github external
init() {
    this._super(...arguments);
    this.routeScopedComponents = getRouteScopedComponents();
    this.muScopedComponents = getMUScopedComponents();
    this.owner = getOwner(this);
    this.componentLookup = this.owner.lookup('component-lookup:main');
    this.routerService = this.owner.lookup('service:router') || this.owner.lookup('service:-router');
    this.appConfig = this.owner.resolveRegistration('config:environment') || {};
    this.modulePrefix = get(this.appConfig, 'modulePrefix') || 'dummy';
    this.podModulePrefix = get(this.appConfig, 'podModulePrefix') || this.modulePrefix;
  },
  normalizeComponentName(name) {