angularjs - Where to store angular templates in Rails? -


I'm using angular.js as my clientide framework and rail as my serverside framework. Is there a slight blockage block where I should store my angular visual templates?

Say I am creating a custom command:

  instructions ("phobos", function (cart) {return} {code: components} / template / url : "Components / bing / foobaz.html"}  

How do I components / bing / foobaz.html should I put it in my public folder:

  root / public / bing / foobaz.html  

Or should I make the route and the controller to meet the angular ideas?

Create a folder app / assets / templates.

This will keep all your angle templates. Please refer to this link to get more details


Comments