As you’ve probably know by know, Angular 2 is out, and that got me interested in what they came up with in these 2+ years, and additionally, how much did they screw up.
The talk around Angular 2 was pretty controversial during its development, and it left a lot of people hanging because of all these clear cuts made in relation to Angular 1.
Meantime, there was this new kid on the block which was generating a lot of noise and doing some revolutionary things, especially in terms of performance and ease of development called React.
I was firmly in the React camp for the last year or so, and I knew it was the future. But what kept React back for me and probably most of the developers was all these unanswered questions: which build process to use, what data managing library, managing state, even which language to use (ES5, ES6, Typescript, Flow). There was also this story around mobile development which didn’t have the right answer: you could go React Native, which is great, but that’s a huge buy-in which doesn’t always really work-out for small and micro agencies and enterprise apps; Ionic is still king-of-the-hill when it comes to these types of apps, and React just doesn’t have a clear answer which goes well with Cordova.
But i feel that, after looking at some videos and trying out some code, Angular has exactly the right bases covered and it’s ready to put up a good fight for king of front-end hill.
Even the inline templating (which a lot of people complain about) does have its merits, because it’s a place where some brilliant folks from angular enabled a thing called Template Transform, which effectively enables you to have your own DSL for showing and fetching data, and creating your own nicer and shorter syntax.
The state management has also been blatantly copied from React, and then supercharged. Some smart folks took the Redux patterns and then they combined them with RxJs to create something that Redux should’ve been from the start.
As for the ecosystem, although React’s gain in popularity was stellar, the big component producers have been suspiciously quiet on the front of native React components. They did make some wrappers, and some new component producers emerged, but “Kendo and co” didn’t give out much else than that. Angular 2 already has native controls BEFORE the initial release! Enthusiasm is huge, and plenty of 3rd party library developers are rallying behind it. Ionic 2 is also just around the corner if you want to build power efficient, mobile hybrid apps. And if you’re big on Native, there’s this thing called NativeScript which sports native Angular 2 support. Angular 2 was built with mobile in mind from the start, so we are very excited to give it a spin on our next project. Stay tuned for some demo apps and proof-of-concepts from us, but in the meanwhile, take a look at following videos to wet your appetite: