Migrating from AngularJS to Angular 7

Migrating from AngularJS to Angular 7

At the moment I’m reviewing a rather lengthy project that is using AngularJS on the client side (with ASP.Net as it’s backend) as I plan out a migration strategy to move from AngularJS to Angular 7.

So I figured it would be a good idea to blog about the experience, as it pertains to common gotchas and strategies that other developers might one day run into.

The plan here is to closely follow the Angular upgrade documentation to ensure a clean and best practices migration. The first steps here are to review the code and look for common Angular code style-guide issues, as this is something the upgrade talks about first.

I’m just going through all the files, taking notes of every component that has issues. The most common ones here are things like ensuring that:

  • All components are wrapped in IIFE (we don’t want any globals anywhere):
(function () {
'use strict';
angular
.module('app.xxx')
....
})();
  • Each component is in it’s own file:
    • .config
    • .constants
    • .controller
    • .directive
    • .factory
    • .filter
    • .provider
    • .run
    • .service

I’ll be blogging about this as things progress, and if anyone has issues or questions please feel free to email me about them. mailto:info@tedneustaedter.com

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

Post navigation

  Next Post :
Previous Post :   
Visit Us On LinkedinVisit Us On FacebookVisit Us On TwitterVisit Us On YoutubeCheck Our FeedVisit Us On Instagram