How to use the @angular/upgrade/static.UpgradeModule function in @angular/upgrade

To help you get started, we’ve selected a few @angular/upgrade 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 thelgevold / angular-samples / upgrade-aot / upgrade-module.ngfactory.ts View on Github external
createInternal():import1.AngularModule {
    this._CommonModule_0 = new import2.CommonModule();
    this._ErrorHandler_1 = import3.ɵa();
    this._APP_INITIALIZER_2 = [
      import0.ɵo,
      import3.ɵc(this.parent.get(import3.NgProbeToken,(null as any)),this.parent.get(import0.NgProbeToken,(null as any)))
    ]
    ;
    this._ApplicationInitStatus_3 = new import0.ApplicationInitStatus(this._APP_INITIALIZER_2);
    this._ɵf_4 = new import0.ɵf(this.parent.get(import0.NgZone),this.parent.get(import0.ɵConsole),this,this._ErrorHandler_1,this.componentFactoryResolver,this._ApplicationInitStatus_3);
    this._ApplicationRef_5 = this._ɵf_4;
    this._ApplicationModule_6 = new import0.ApplicationModule(this._ApplicationRef_5);
    this._BrowserModule_7 = new import3.BrowserModule(this.parent.get(import3.BrowserModule,(null as any)));
    this._UpgradeModule_8 = new import4.UpgradeModule(this,this.parent.get(import0.NgZone));
    this._ɵba_9 = new import5.ɵba();
    this._ReactiveFormsModule_10 = new import5.ReactiveFormsModule();
    this._AngularModule_11 = new import1.AngularModule();
    return this._AngularModule_11;
  }
  getInternal(token:any,notFoundResult:any):any {
github thelgevold / angular-samples / upgrade-aot / upgrade-module.ngfactory.js View on Github external
AngularModuleInjector.prototype.createInternal = function () {
        this._CommonModule_0 = new import2.CommonModule();
        this._ErrorHandler_1 = import3.ɵa();
        this._APP_INITIALIZER_2 = [
            import0.ɵo,
            import3.ɵc(this.parent.get(import3.NgProbeToken, null), this.parent.get(import0.NgProbeToken, null))
        ];
        this._ApplicationInitStatus_3 = new import0.ApplicationInitStatus(this._APP_INITIALIZER_2);
        this._ɵf_4 = new import0.ɵf(this.parent.get(import0.NgZone), this.parent.get(import0.ɵConsole), this, this._ErrorHandler_1, this.componentFactoryResolver, this._ApplicationInitStatus_3);
        this._ApplicationRef_5 = this._ɵf_4;
        this._ApplicationModule_6 = new import0.ApplicationModule(this._ApplicationRef_5);
        this._BrowserModule_7 = new import3.BrowserModule(this.parent.get(import3.BrowserModule, null));
        this._UpgradeModule_8 = new import4.UpgradeModule(this, this.parent.get(import0.NgZone));
        this._ɵba_9 = new import5.ɵba();
        this._ReactiveFormsModule_10 = new import5.ReactiveFormsModule();
        this._AngularModule_11 = new import1.AngularModule();
        return this._AngularModule_11;
    };
    AngularModuleInjector.prototype.getInternal = function (token, notFoundResult) {