Starting point was an AngularJS weather app from https://www.udemy.com/course/learn-angularjs/ Ending point is the same app, but in Angular 8. Some minor fixes were made too.
Steps made:
- Add Webpack.
- Add TypeScript.
- Build project using both: TypeScript and Webpack.
- Add Ts-Loader.
- Add SourceMap.
- Rewrite directives to components.
- Make new empty Angular2+ project.
- Fill this new Angular2+ project up using AngularJS components and services prepared in previous steps.
- Move dependencies from index.html to package.json.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.