News for hackers. Stuff that matters.
Re:Angular 2 Release Candidate by andrewflnr on Tuesday May 03, 2016 @01:49AM (#11618235)
React lets you summarize your framework in a single sentence: make your UI a pure function of your model, but keep performance. OTOH, I still don't understand what the deal with Angular is.
Re:Angular 2 Release Candidate by narrator on Tuesday May 03, 2016 @02:18AM (#11618338)
Angular is an ORM for the DOM. With an ORM it's: "here's my model, figure out what to do to the database". With Angular it's "here's my model, figure out what to do to the DOM". Some people hate ORMs because there's too much magic, other's like them because they let one think about other parts of the app more.
Re:Angular 2 Release Candidate by marpstar on Tuesday May 03, 2016 @09:26AM (#11620385)
How is Angular any different than React in the way that it allows you to bind models to the DOM? They're both component based, you have to specify the template and backing logic in both.
Re:Angular 2 Release Candidate by notsotrue on Tuesday May 03, 2016 @09:42AM (#11620516)
Implicit vs explicit binding.
Re:Angular 2 Release Candidate by qaq on Tuesday May 03, 2016 @02:03AM (#11618288)
That's sounds great but it does not really play out in a real world if you need to animate transitions to make UI look nice for example.
Re:Angular 2 Release Candidate by apsurd on Tuesday May 03, 2016 @02:15AM (#11618328)
I disagree. CSS animations work very well and offer better performance. You can maintain the animation lifecycle by the React lifecycle callbacks and use of setTimeout
Re:Angular 2 Release Candidate by qaq on Tuesday May 03, 2016 @02:31AM (#11618386)
CSS animations do not work when you need to morph distinct components in complex coordinated manner. They are significantly slower then velocity js. Doing things available with quality solutions such as Ember liquid-fire are simply not possible.
Re:Angular 2 Release Candidate by madeofpalk on Tuesday May 03, 2016 @02:47AM (#11618454)
Animations work really well with React!

The Animated library (originally from React Native) gives you some pretty basic but powerful primitives to build whatever animation you need.

Re:Angular 2 Release Candidate by qaq on Tuesday May 03, 2016 @08:02AM (#11619752)
On route transition you want to animate morphing unrelated components between before transition components and after transition components. You will not be able to do this in functional manner. You will not be able to do this with CSS animations. Example of how this is done with Ember liquid fire. https://www.youtube.com/watch?v=vq_BcIFM8Rc