Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
UpgradeAdapter.prototype.bootstrap = function (element, modules, config) {
var _this = this;
var upgrade = new UpgradeAdapterRef();
var ng1Injector = null;
var platformRef = platform_browser_1.browserPlatform();
var applicationRef = core_1.ReflectiveInjector
.resolveAndCreate([
platform_browser_1.BROWSER_APP_PROVIDERS, platform_browser_dynamic_1.BROWSER_APP_COMPILER_PROVIDERS,
{ provide: constants_1.NG1_INJECTOR, useFactory: function () { return ng1Injector; } },
{ provide: constants_1.NG1_COMPILE, useFactory: function () { return ng1Injector.get(constants_1.NG1_COMPILE); } },
this.providers
], platformRef.injector)
.get(core_1.ApplicationRef);
var injector = applicationRef.injector;
var ngZone = injector.get(core_1.NgZone);
var compiler = injector.get(core_1.ComponentResolver);
var delayApplyExps = [];
var original$applyFn;
var rootScopePrototype;
var rootScope;
var componentFactoryRefMap = {};
var ng1Module = angular.module(this.idPrefix, modules);
var ng1BootstrapPromise = null;
var ng1compilePromise = null;