We rebuilt 2 websites with angular2. Started 10 and 5 months ago. Both already in production. It was surprisingly easy to get a clean codebase with 10 developers. It is just so much easier to understand what the software does than in angular1.
The downside was, in those 10 months angular2 got through a TON of breaking changes. Keeping the projects on the latest version required big changes across the codebase. Because of these breaking changes it's hard to search for help, as every blog or stackoverflow might be obsolete if it is older than a couple of weeks.
I'm glad they are final now, as they promised to don't do big breaking changes constantly.
The biggest point for angular2 IMO are unit tests. The library is fucking amazing to unit test. As angular2 abstracts away the browser (it comes with its own html and css parser), everything runs headless in node. Thanks to zone.js you can test asyncronous tasks like they were synchronous.
The second biggest point about angular2 is not the library itself, but the ecosystem around it. The angular team really pushed rxjs, typescript and es6 modules. The PhpStorm plugin is awesome and in active development. They contribute in so many projects, it is amazing. I'm exited about real typescript support in the templates https://github.com/microsoft/typescript/issues/6508 ... I hope they work this out :)
Hey, any chance we can chat offline. Would like to ask you more about how you rebuilt your stuff in A2. Specifically the unit testing with inject and testbed and all the new stuff.
27
u/soddi Sep 15 '16 edited Sep 15 '16
We rebuilt 2 websites with angular2. Started 10 and 5 months ago. Both already in production. It was surprisingly easy to get a clean codebase with 10 developers. It is just so much easier to understand what the software does than in angular1.
The downside was, in those 10 months angular2 got through a TON of breaking changes. Keeping the projects on the latest version required big changes across the codebase. Because of these breaking changes it's hard to search for help, as every blog or stackoverflow might be obsolete if it is older than a couple of weeks.
I'm glad they are final now, as they promised to don't do big breaking changes constantly.
The biggest point for angular2 IMO are unit tests. The library is fucking amazing to unit test. As angular2 abstracts away the browser (it comes with its own html and css parser), everything runs headless in node. Thanks to zone.js you can test asyncronous tasks like they were synchronous.
The second biggest point about angular2 is not the library itself, but the ecosystem around it. The angular team really pushed rxjs, typescript and es6 modules. The PhpStorm plugin is awesome and in active development. They contribute in so many projects, it is amazing. I'm exited about real typescript support in the templates https://github.com/microsoft/typescript/issues/6508 ... I hope they work this out :)