Combining Rails and AngularJS appears to be a promising combination. However, I find myself struggling with the concept of data binding. In AngularJS, data is provided through a scope which then generates content based on that data.
On the other hand, my background is in Rails where data is typically provided through backend processing (as is my current setup) and displayed in the view using erb templates. While I aim to add responsiveness and dynamic features to my web application, I'm unsure how to bridge the gap between these two approaches.
Should I fetch data from AngularJS using AJAX requests to populate the data scope? What is the recommended strategy for integrating data binding in this scenario - should I lean towards using Rails (ERB templates) or rely more on AngularJS ({{ data.cookie }}
)?