I've begun integrating AngularJS with an existing Rails application. Everything is set up closely following the Rails way. What I'm curious about, and haven't been able to find information on, is any way to use something like $routeProvider with partials.
For example: If wanted to go to a dashboard page in our Rails only app, we'd hit the dashboard#index controller, which would perhaps render the dashboard/_index.html.slim partial that has various other layouts surronding it (the general application/layout, as well as sidebar layouts and a custom header layout). In Angular I'd put the template in public/dashboard/index.html, use $routeProvider's templateUrl key, and it would load the whole thing, sans header, sidebar, and application layouts. *How can I get it to load all the pre-existing layouts that we have already in place?* It'd obviously be much less painful to slowly incorporate $routeProvider and not have to go through and tear out existing architecture. Also, have any best practices been explored for transitioning a legacy Rails app to use Angular? -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
