Using the `upgrade` module in Angular to incrementally upgrade an AngularJS application to Angular.
Questions tagged [ng-upgrade]
157 questions
7
votes
1 answer
Bootstrapping an Angular 2 rc.6 hybrid app using ngUpgrade with routing
I have an Angular 1/Angular 2 hybrid app that was working with rc.3 and the deprecated router. From all sources that I can find, rc.5 is the big step to move towards with the new router. I am able to get my hybrid app bootstrapped, and render my…

Justin Rassier
- 898
- 12
- 26
5
votes
1 answer
Migration failed: Incompatible peer dependencies found
i'm new with angular and trying to upgrade from 9.0.0 to 9.1.11 to upgrade my typescript from 3.7.5 to 3.8 to use countries-map plugin in my app.
When I run the command ng update @angular/cli@9.1 @angular/core@9.1 i got
Using package manager: 'npm'…

Teddy Kossoko
- 1,168
- 3
- 20
- 48
5
votes
0 answers
Loading multiple AngularJS modules in Angular Hybrid app with NgUpgrade
I have a fully functional large AngularJS/Angular 4 hybrid application. Since the beginning of this project I have only had one AngularJS module and one Angular 4 module. As time went by, the Angular 4 part started growing more and more and I…

jurgen w
- 243
- 1
- 2
- 14
5
votes
1 answer
5
votes
1 answer
Pass function from angular1 to downgraded angular2 component
Problem:
I am unable to get a function to pass successfully to a downgraded Angular 2 component. I've tried just about every way I can think to pass things in but I am only able to get strings passed in via string interpolation ->…

Mark Bishop
- 76
- 4
5
votes
1 answer
Testing an Angular app with ngUpgrade fails with "Unknown provider: ng2.InjectorProvider <- ng2.Injector"
I'm trying to use ngUpgrade to move from ng1 to ng2, and also keep my Karma/Jasmine tests passing during the upgrade, but I'm running into an error I can't figure out.
I've upgraded a Service (Data) to be an ng2 @Injectable, and used…

matthewsteele
- 1,797
- 1
- 15
- 31
5
votes
1 answer
ngUpgrade in production app/website?
We have an app/website using Angular 1.5. It'll take time to convert everything to Angular 2 and it isn't a priority as what we have currently work.
I was thinking it could be interesting for new components/directive/services to write them in…

user276648
- 6,018
- 6
- 60
- 86
4
votes
3 answers
AngularJS + Angular 8 not working together [ Hybrid application ]
I have a use case to migrate a large angularjs application and I want to start by doing this process in a small application first. So for that reason, I've took the tour of heroes angularjs webapp and I started to add angular to it ( by creating a…

Max Becerra
- 466
- 10
- 20
4
votes
2 answers
ng upgrade command fails for upgrading cli from v7 to v8
The ng upgrade command for updating cli version from a v7 project to v8 fails.
Manually trying to upgrade cli first also fails.
ng update @angular/cli
Your global Angular CLI version (8.0.1) is greater than your local
version (7.3.9). The local…

avinashkr
- 512
- 1
- 5
- 20
4
votes
0 answers
How to setup routing for a downgraded Angular 6 application in to an AngularJS application?
I've got a large AngularJS application with a downgraded Angular 6 application inside of it. If I navigate directly to the Angular application then it loads properly. If I navigate to the AngularJS home page and then go to the Angular 6 url then the…

jonstieg
- 172
- 8
4
votes
1 answer
How to inject downgraded Angular service into an AngularJS project?
I have been following the guide here for upgrading an angularjs project.
However, the code base I really want to upgrade already has ts classes for a majority of services so I followed the official guide that replaces the angularjs phone service…

dentudave
- 73
- 1
- 5
4
votes
0 answers
Downgrade Angular Directive and use it in AngularJS template
I am trying to convert AngularJS directives to Angular. Running AngularJS and Angular together using ngUpgrade.
I have AngularJS directive as below:
angular.directive('countClicks', function($timeout) {
return {
restrict: 'A',
…

Dot Net Dev
- 574
- 8
- 20
4
votes
1 answer
Load Angularjs bundle in a hybrid application with Angular 7
I have a big application and I applied some changes to make it Hybrid.
It will work fine if the old bundle of Angularjs app loads first on time. (it is a 4-5MB bundle)
I was checking the samples on the net and most of them just say the same. for…

arya
- 53
- 7
4
votes
2 answers
Upgrading AngularJS to Angular, AppModule was bootstrapped, but it does not declare "@NgModule.bootstrap" Error
I'm currently experimenting with upgrading an AngularJS app to Angular. Been following along the tutorial on Angular.io. There are a few differences between that project and mine. I'm using RequireJS, Gulp and Webpack.
My index.html asks for…

keyboardr
- 41
- 1
- 4
4
votes
1 answer
Coexistence of Angular 4 and Angular JS 1x
We are currently working with Angular JS 1.6. Our achitecture Layers as follows,
HTML Page,
Controller (MVC Controller),
Service (Holds $resource for service side API),
State (Holds states for a functionality)
* Functionality is collection of HTML…

Harishankar Sekar
- 49
- 4