I need some guidance to figure out how to enable Angular inside rails.
Reason for choosing Rails: I like that their intoxicating approach does everything right. Also migrations, gems are really cool.
Reason for Angular: I studied and searched for the framework that is most suitable for SPA. The highway seems too abstract. I had a choice to make between Angular and Ember. At first I started reading Angular, and that made sense to me. So I never read about ember.
Reason for Angular and Rails: I researched and tried using small frames like grapes, slim (Yes, I also use php). But I feel the need to stick to the rails for the long-term scope of the project. And personally, I like to do things with rails.
So this is where I need help
I have rails in Rails 4.
Login, registration, everything is created in accordance with the instructions of Michael Hartle. Changed the settings based on my requirement.
Thus, after the steps after login or after registration, the visual action of the user controller is displayed.
I realized that I needed different layout files, so I created them for external pages and internal pages, respectively.
I do not know how to proceed. I want to use Angular templates and routes for my one-page application (which is located after login). I am flexible if there is another way. I just need guidance on how to use Angular without visible problems using rails using the rails controller to process my rest request and use the routing provided by Angular to navigate the SPA.
I hope I understand. Feel free to edit this.
source share