4 Ways to Pass Rails Data to AngularJS
The Angular app is embedded within a rendered Rails view. This choice raised a practical question: how do we expose the Rails data (instance variables, params, etc.) to the Angular app’s controller(s)?
Source: spin.atomicobject.com