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?
-
1Nope it will only work with Angular 2 +.Fahad Nisar– Fahad Nisar2017-07-11 04:46:44 +00:00Commented Jul 11, 2017 at 4:46
-
1I'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.– Sunil D.2017-07-11 05:10:06 +00:00Commented 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?anastsiacrs– anastsiacrs2018-05-14 08:54:11 +00:00Commented May 14, 2018 at 8:54
-
@anastsiacrs it could help. My biggest problem was not having command of webpack.Sunil D.– Sunil D.2018-05-14 18:32:12 +00:00Commented 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.Wendi– Wendi2020-05-22 21:16:33 +00:00Commented May 22, 2020 at 21:16
Add a comment
|