Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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) {