AnonDCX AnonDCX - 1 year ago 45
TypeScript Question

Thinking in Angular 2 when coming from an Angular 1 background

Lets say I have become comfortable with developing client-side SPA's with angular 1 but now I want to make the change to Angular 2.

Who would be some of the important paradigms to take into consideration when making the change?

Here are some questions that may help frame your answers:

  • What is the main difference in the architectural design of Angular 2 compared to 1?

  • What should I stop/start doing?

Answer Source

Main difference in architectural design is probably the unidirectional data flow and the focus on components.

Start using controllerAs with Typescript classes as your controllers if you want a more easy transition. Start learning the basics of RxJS, Ng2 is built on it.