HNHacker News
TopNewBestAskShowJobs

fervisa

51 karma · joined October 6, 2014

submissionscomments
fervisa··on Rails JS frameworks: Ember.js vs. AngularJS
Those are great news!
fervisa··on Rails JS frameworks: Ember.js vs. AngularJS
The Rails unobtrusive adapter for jQuery jquery-ujs has a pretty neat implementation, you can take a look at it here https://github.com/rails/jquery-ujs/blob/master/src/rails.js...
fervisa··on Rails JS frameworks: Ember.js vs. AngularJS
You're right, and the main reason why the article doesn't go deeper into SPAs is because talking about SPAs with Angular/Ember and Rails is a topic so wide it could be its own article. I tried keeping it short, mentioning common Rails' integration caveats.
fervisa··on Rails JS frameworks: Ember.js vs. AngularJS
I usually test my Rails/Angular projects with jasmine-rails jasmine-jquery and Sinon.JS. These three together let you test virtually any frontend js code.
fervisa··on Rails JS frameworks: Ember.js vs. AngularJS
Thanks for the heads-up, maybe I can do a follow-up article or add an update into this one to include ember-cli features.
fervisa··on Rails JS frameworks: Ember.js vs. AngularJS
In fact, the article mentions in 6.2.2 one client-side solution to handle CSRF token by including it into the $httpProvider's headers.