Is there a way to add angular to my already built rails app without changing routes?
basically what the title says I want to add angularjs to my rails app without changing my routes completely. I've been looking for a way, but every article I find requires angular to handle routes.
edit - I honestly just want to try ng-animate for one page of mini-sites in a rails app. So if this is possible, can someone please let me know?
source to share
This article really helped me to do it: https://www.honeybadger.io/blog/2013/12/11/beginners-guide-to-angular-js-rails
As Reborix said, Angular is a UI, not a backend file, so routes should not depend on Angular. Angular is for a one page website. This suggests that it is becoming more and more common for Rails developers to have a master page, such as a dashboard, and use Angular on that page.
I have an example of a simple todo application in Rails 4 that might help: https://github.com/onetwopunch/ng_todo
It is not recommended to have a website that uses Angular on every page. This is not what it meant and is definitely bad practice.
source to share