Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migration from angular 1.2 to 1.5

Tags:

angularjs

Currently I am using angular v1.2.26. When I upgraded it to v1.5.0(or v.1.4.8), the application stopped working.

What are the changes in the existing code of v1.2.26, I should not be missing, to make the application work?

like image 229
ashok_khuman Avatar asked Jan 18 '16 06:01

ashok_khuman


People also ask

How do I upgrade AngularJS version?

Updating dependencies 6, change the versions of angular , angular-animate and angular-resource packages to 1.6. 6 in the dependencies section of the package. json file. Run npm install to ensure that the specified dependencies are downloaded into the application.

Can we migrate AngularJS to Angular?

You can make AngularJS services available for injection to Angular code by upgrading them. The same singleton instance of each service is shared between the frameworks. In Angular these services will always be in the root injector and available to all components.

What is NgUpgrade?

NgUpgrade is a library in Angular that allows us to upgrade our Angularjs (1.X) application to Angular gradually. It lets run Angular side-by-side along with AngularJs with breaking the application. You can install NgUpgrade using npm command npm install @angular/upgrade --save.

What is replacing AngularJS?

JavaScript, Angular 2, React, Node. js, and jQuery are the most popular alternatives and competitors to AngularJS.


2 Answers

There's now a guide available https://docs.angularjs.org/guide/migration - probably slightly less tedious than reading every single ChangeLog

like image 194
Brian Avatar answered Oct 24 '22 04:10

Brian


Migration Guide - https://docs.angularjs.org/guide/migration

See the change log

https://github.com/angular/angular.js/blob/master/CHANGELOG.md

An easier way is to see where your code fails, debug a bit and hit the nail. There are no huge changes between the versions in question.

like image 31
Charlie Avatar answered Oct 24 '22 04:10

Charlie