I'm looking forward to trying this out. Having written Ember, Angular, and React apps now, I feel like they are all getting closer, but a lot of rough edges still exist. Ember: interesting framework, but all too often, you would hear a team mate say "wait, why is that working, it shouldn't be?" Mixed with equal parts "logically, that SHOULD work, what am I missing?" React: I love the component focus, and redux is pre…
> However, the more complex an app, the less Angular 1 serves. That's not really true. The problem is that all three frameworks are supposed* to require the same discipline when it comes to managing state, but only React forces that discipline onto the developer. I'm not saying React is better, but learning from React is important to be able to write maintainable applications in any framework. You don't want to have…
Angular 2 Release Candidate
131–139 of 139 posts
Re: Angular 2 Release Candidate
#132Earlier quoted context omitted.
Why is everything packaged separately now? Also, any ETA on 1.0?
couple of reasons. one big one is flexibility. angular2 (er, @angular) runs on client, server, native (react native/nativescript) and we hope many other platforms in the future. this lets us packages for common dependencies for various platforms, as well as enabling us to not ship the template compiler for precompiled apps. the other is providing a single entry point to each of those packages, which makes it easy to…
Re: Angular 2 Release Candidate
#133Re: Angular 2 Release Candidate
#134Angular core team member here, happy to answer questions
Re: Angular 2 Release Candidate
#135Earlier quoted context omitted.
That seems a lot for: Hello world hello child (yes, I know it's not the same under the covers - take it as a comment on the ecosystem, not on the implementation (although it can be a comment on dead code detection too))
200k un-minified is huge!
Re: Angular 2 Release Candidate
#136Angular core team member here, happy to answer questions
One thing that interests me about Angular 2 a bit more than React is the web components support. With web components finally going native (surprisingly, led by Safari!), will Angular 2 see any big speedups, and will the size of the hello world app come down (200k is kind of huge)? Also, I've seen a few tutorials on using Angular 2 with Polymer, but it seems complex. Is Google working on making these work together bet…
[1] 9:02 mark in https://www.youtube.com/watch?v=gdlpE9vPQFs&t=9m2s
Re: Angular 2 Release Candidate
#137Earlier quoted context omitted.
React is just about dirty-checking the view, while Angular dirty-checks the model. I mean, seriously, that's the main difference conceptually. You just modify some data structure and both frameworks will update some view.
I was surprised to find that Angular has a limited duration time window during which changes will update the view. In my case, symptoms were observed only after deployment, for user who had a high latency connection between their browser and the server. One could mitigate this by calling $scope.$apply() after every change. But if you have to apply() all changes, then what's the point of having angular handle synchron…
Yes, shockingly, we don't save those keystrokes, but we also don't have the elaborate dirty checking. The developer of a component is extremely likely to make sure during development that the update to a state has updated the view. Of course, you could just hook up React or VDOM or mirthril and it's totally complementary to what we do.
Re: Angular 2 Release Candidate
#138Earlier quoted context omitted.
React and Angular are two very different experiences. Using Angular 2 with TypeScript is almost like using WPF and C# on the desktop - it has that enterprise framework feeling - hierarchical DI everywhere, everything out of the box (DI, routing, events, forms, etc.), classes and OO are the foundation, decorators, even "functional" parts adopts RX from .NET. Using Dart gets you even more stuff working "out of the box"…
Note that Typescript with React is totally possible.
Since virtually ALL available React tutorials, courses, quick starts, etc are written in JS, there is very little support out there for TS.
With Angular2, it's all TS all of the time. And, to me, that's incredibly important.
Re: Angular 2 Release Candidate
#139Ask HN: Why would I spend time upgrading my Angular1 code to Angular2 when I can migrate to React Or Vue.js. I am honestly intrigued as to what Angular2 offers, that other JS frameworks wont?