Rails JS frameworks: Ember.js vs. AngularJS
airpair.com
airpair.com
I've also wondered about the pros and cons of doing separate backend APIs and having the front end be a separate client and then also the mobile clients. This seems to be the most theoretically clear/clean way to set stuff up but in my experience, having to replicate the models in javascript never has seemed like a good use of time.
Grunt has a few plugins that help you manage this as well. If you're using CoffeeScript and/or SASS then I highly recommend grunt-connect-proxy - it's trivial to set up and works like a charm. It's also really useful to stub out HTTP calls by setting up your grunt-connect middleware to deliberately return certain responses.
see also: http://blog.pedago.com/2014/01/21/goodbye-sprockets-a-grunt-...
We've since completely abandoned any Rails views and only interface via REST APIs (and have also migrated to Gulp). While having Rails generated views for admin boilerplate was initially great for prototyping, it probably created more headaches than it was ever worth.
How do I do CSRF token for separate Ember/Angular app?
Since Rails can't write the CSRF directly on the front end page, how does CSRF work in that case?
The style of development CLI introduces makes you incredibly productive. A comparison of Ember without discussing CLI is missing an essential ingredient.
I got burned last fall trying to build an app with Ember as they kept making breaking changes, even between release candidates (!). Technically Ember was stable, but Ember Data (which is separate I guess?) was doing major refactoring on their API, and it cost us quite a bit of time just trying to keep up. Even today, their GitHub has a disclaimer that it's beta quality and under active development[1]. Ember CLI also says it's very much WIP[2], even though it seems to be the officially endorsed way to build Ember apps.
Does Angular make stronger promises about their stability? Is this sort of thing just the cost of doing business with cutting-edge frameworks? Or am I missing something?
[1]: https://github.com/emberjs/data#api-stability [2]: http://www.ember-cli.com/#community
Compare http://angularjs.blogspot.co.il/2014/10/ng-europe-angular-13...
> Our goal with Angular 2 is to make the best possible set of tools for building web apps not constrained by maintaining backwards compatibility with existing APIs
vs https://github.com/emberjs/rfcs/pull/15
> This is not a big-bang rewrite; we will continue development on the master branch, and roll out changes incrementally on the 1.x release train. The 2.0.0 release will simply remove features that have been deprecated between now and then. Our goal is that you can move your Ember app to 2.0 incrementally, one sprint at a time.
TL;DR: they're dedicating team members to continue working on 1.X while they build 2.0. They're also planning out a migration strategy for anyone on 1.X when 2.0 launches
> Once we have an initial version of Angular 2, we'll start to work on a migration path for Angular 1 apps.
Not very intellectually honest of you, in addition you forgot to mention that you're an Ember contributor. Also, as have been said, this: https://docs.google.com/document/d/1dZdq2L8EkzimgvU93ypLF9GJ...
I don't have any patches into Ember.
I believe they added in the migration path after I had read it, as that's why everyone had been so upset over the announcement.
https://github.com/emberjs/ember.js/commits?author=steveklab...
He has contributed to a great deal of other open source projects though. Mostly Rust lately it seems:
Angular is relatively unopinionated here.