Skip to content

[documentation of Upgrading from AngularJS to Angular] libraries to load in the browser #30249

@eetievent

Description

@eetievent

Description

When upgrading from AngularJS to Angular, it may be needed to declare the libraries to load in the browser in angular.js / build.options.scripts , including angular.js.
This could be added to the documentation? (Indeed the examples given are based on SystemJS but we don't use it because Angular uses already Webpack).

What's the affected URL?

https://angular.io/guide/upgrade#bootstrapping-hybrid-applications

Reproduction Steps

upgrade to AngularJS 1.7
remove Grunt and use angular-cli
use ngUpgrade (app.module.ts and app.module.ajs.ts)
removed require("angular") (use of the AngularJS global angular)

🔥 Exception or Error

Angular 1.x not loaded !
generated by this.upgrade.bootstrap(document.body, [App])

Anything else relevant?

More details here:
https://stackoverflow.com/questions/54807576/upgrading-to-an-angular-angularjs-hybrid-application-getting-typescript-errors/

Metadata

Metadata

Labels

P4A relatively minor issue that is not relevant to core functionsarea: upgradeIssues related to AngularJS → Angular upgrade APIsfeatureIssue that requests a new featurefreq3: high

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions