AngularJS in the Wild: A Survey with 460 Developers
researchgate.net
researchgate.net
I just started using AngularJS 1.5 at my new job, coming from react, I actually started a list of problems I encountered. Basically everything stemmed from how complicated it get's working with directives and properly scoping/binding where you want.
I don't know if Angular 2 will face these same issues, they still have directives, but I don't know if they're exactly the same. I "heard" that Angular 2 was supposed to jump on the unidirection binding bandwagon. This stackoverflow Q&A seem to indicate it's still two way binding. http://stackoverflow.com/questions/35469024/how-does-angular...
Anybody know if it's any better?
https://angular.io/docs/ts/latest/cookbook/component-communi...
I think angular will suffer from a trickle effect as developers migrate slowly over the course of years from 1.x to 2.x. There is no impetus currently to create advanced learning resources as everybody seems to pretty much be learning at their own rate.
That said I will be implementing future SPA applications using Angular 2 because it offers a very clear value proposition to me and has more great features coming within the next ~6 months, such as server-side rendering iirc.
Edit: To clarify my troubles with finding the activated route name stemmed from a rapidly changing Router API in angular 2. Apparently it's going to be easy in the final version (3.0) but there is no current solution for it apparently. Other then that I really like the new router.
I eventually figured that there is no backward compatibility, it's all or nothing. So what I had to do was come up with a little hack to check the URL myself and if it was a configured route enable it. :/
Do you know if the new routing module in 2 will support old links like in my case? I took a quick skim, no mention.
I don't know exactly what you mean by "routing module that supports old links". Are you referring to the "LocationStrategy" which differentiates between routes such as /#/some-state vs. /some-state (with <base href="/">)?. Or are you moving a non-SPA application to a SPA application w/angular routing?
I want to add a few new pages, "/Dashboard/Monitoring", "/Dashboard/Logs". I want this to utilize angular with html5mode enabled. This way they can still bookmark the links and come back, or at least the url won't look weird.
I don't want the old links to be broken, as I add pages with routing enabled it should work. It ends up breaking though because if those other three links don't match my two configured links (Monitoring, Logs), it uses "otherwise" to fallback to the home directory "/". There's no way arround this other than detecting and turning on/off the routing.