Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 767 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 767 Bytes

Exercise: Update of AngularJS app to Angular2+ app

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:

  1. Add Webpack.
  2. Add TypeScript.
  3. Build project using both: TypeScript and Webpack.
  4. Add Ts-Loader.
  5. Add SourceMap.
  6. Rewrite directives to components.
  7. Make new empty Angular2+ project.
  8. Fill this new Angular2+ project up using AngularJS components and services prepared in previous steps.
  9. Move dependencies from index.html to package.json.

Development server

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.