we have a classical Rails4 app that we want to take a step further using AngularJS (Ember would do, even Backbone), but the problem is that we don't want a fully Angular SPA using Rails just as the API endpoint. What we want to do is to serve the SPA only in parts of the app such as for example the search page being SPA, but the user's profile page being a classical Rails Controller/view...
So, user comes to /homepage and is served Angular.js, Templates etc., but when he goes to /users/3 he is served a classical Rails view..
What are your suggestions on this? I googled and couldn't find a good resource on the topic. I found a lot of "TodoMVC's" aps, but no Rails app with parts being "TodoMVC" Everyone is talking about Ember.js/AngularJS + Rails API. No hybrid mentioned.
The question comes down to:
- Including AngularJS library into application.js and serving it always?
- Organizing angular controller/view/directives under javasript/angular/ ?
- The problems we might find down the way?