vendredi 6 juin 2014

Where do I put my ui.router templates in a rails app?


Vote count:

0




I am working on a basic Rails/Angular app and am using ui.router to control the views. However when I try to use templateUrl I get a localhost/app/assets/templates/partial-home.html error. Where should I be putting these partials to make available to rails?



app.config(function($stateProvider, $urlRouterProvider) {

$urlRouterProvider.otherwise('/');

$stateProvider
.state('home', {
url: '/',
template: "this is a test of the state provider",
//templateUrl: 'app/assets/templates/partial-home.html',
controller: 'testCtrl'
});

});


asked 22 secs ago






Aucun commentaire:

Enregistrer un commentaire