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?

5
  • 1
    Nope it will only work with Angular 2 +. Commented Jul 11, 2017 at 4: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. Commented Jul 11, 2017 at 5: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? Commented May 14, 2018 at 8:54
  • @anastsiacrs it could help. My biggest problem was not having command of webpack. Commented May 14, 2018 at 18:32
  • Nope. AngularJS 1.3 has LTS... stay there. Build a new app from scratch if you want to upgrade. Commented May 22, 2020 at 21:16

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.