I am working on basic Rails / Angular and I am using ui.router to manage the views. However, when I try to use templateUrl, I get an error localhost/app/assets/templates/partial-home.html. Where should I put these partial parts to access the rails?
app.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state('home', {
url: '/',
template: "this is a test of the state provider",
controller: 'testCtrl'
});
});
source
share