How to use the @angular/upgrade/static.setAngularJSGlobal 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 MicroFocus / CX / self-registration-uxa / src / app / app.module.ts View on Github external
AppComponent
  ]
})
export class AppModule {

  constructor(private _upgrade: UpgradeModule) { }

  ngDoBootstrap() {
    this._upgrade.bootstrap(document.body, ['app'], { strictDi: true });
  }
}

/*
  AngularJS Module
*/
setAngularJSGlobal(angular);

angular.module('app', ['ux-aspects'])
  .directive('appRoot', downgradeComponent({ component: AppComponent }) as angular.IDirectiveFactory);