Open ztl8702 opened 7 years ago
@rovinglight
👌Seems like we should do that first before other things can go on.
Proposed steps for upgrade:
Configure webpack for module loading. This also prepares for the following step.
Switch to TypeScript. This involves changing all .js
files to .ts
, and updating gulpfile.js
to add TypeScript compilation to the build process.
Change existing views and controllers to Component Directives. This will facilitate the upgrade to Angular 4 as "components" are the primary building blocks in Angular 4.
Switch from ng-app
to manual bootstrapping.
After these steps Angular 4 may be introduced into the project.
All 4 preparation steps are done. Now kicking off the actual migration.
This will be a long and challenging task. But it is possible and we can do it piece by piece.
First have a look at: https://angular.io/guide/upgrade
Angular (i.e. Angular 4) can run side by side with AngularJS (i.e. Angular 1). This means that we can write new components in Angular 4 and use them in the old Angular 1 application.
Of course, some configurations and cleaning up are necessary.