I have created rails view (ERB). However, I want to integrate it into angularjs $routeProvider
, but I don't know what url should I fill into templateUrl
to give me the appropriate rails view. For example, I tried:
$routeProvider.when('/pages/foo', {
templateUrl: "/pages/foo",
controller: "PageFoo"
})
But the result appears as a blank page.
Are the two features even integrateable? Or do I have to create new .html
files, instead of using preexisting .html.erb