News for hackers. Stuff that matters.

fervisa

Re:Rails JS frameworks: Ember.js vs. AngularJS on Thursday November 06, 2014 @02:47PM (#8569295)
Those are great news!
Re:Rails JS frameworks: Ember.js vs. AngularJS on Thursday November 06, 2014 @01:56PM (#8568922)
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...
Re:Rails JS frameworks: Ember.js vs. AngularJS on Thursday November 06, 2014 @01:46PM (#8568860)
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.
Re:Rails JS frameworks: Ember.js vs. AngularJS on Thursday November 06, 2014 @01:13PM (#8568620)
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.
Re:Rails JS frameworks: Ember.js vs. AngularJS on Thursday November 06, 2014 @11:46AM (#8567909)
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.
Re:Rails JS frameworks: Ember.js vs. AngularJS on Thursday November 06, 2014 @11:38AM (#8567863)
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.