7

We are in process of upgrading our Angular JS application to the new Angular (Angular 4) framework. The strategy we have devised is that we first convert Angular JS stuff from javascript to typscript and then convert component by component to the new Angular framework. However, Is there anyway to make Angular CLI work with Angular JS?

Ebad Masood
  • 2,389
  • 28
  • 46
  • 1
    Nope it will only work with Angular 2 +. – Fahad Nisar Jul 11 '17 at 04:46
  • 1
    I'd probably try to just convert my app to Angular 4 first, and not worry about the CLI. The CLI is awesome, you should not start a new project w/out it. If you already use webpack to build your app, you might be in a good place to try and use the CLI. For one of my apps, I had an antiquated build system using bower, gulp, browserify, typescript... and it proved very difficult to update everything at once to a newer setup using ngUpgrade ... let alone make it work w/the CLI. – Sunil D. Jul 11 '17 at 05:10
  • @SunilD. According your experience with migration from a bower/gulp angularJS app to a newer angular 5+, is it better to switch a build process to webpack first? – anastsiacrs May 14 '18 at 08:54
  • @anastsiacrs it could help. My biggest problem was not having command of webpack. – Sunil D. May 14 '18 at 18:32
  • Nope. AngularJS 1.3 has LTS... stay there. Build a new app from scratch if you want to upgrade. – Wendi May 22 '20 at 21:16

0 Answers0