I cannot get my template load in my Rails app with Angularjs. Following is my setup
#app/assets/javascripts/app.js
app = angular.module('app', ['ui.router', 'templates'])
app.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise("/home");
$stateProvider
.state('home', {
url: '/home',
templateUrl: 'home.html'
})
});
#app/assets/javascripts/templates/home.html
<h1>abc</h1>
#app/assets/javascripts/application.js
//= require jquery
//= require jquery_ujs
//= require angular/angular
//= require angular-ui-router/release/angular-ui-router
//= require angular-rails-templates
//= require_tree ./templates
//= require_tree .
#app/views/layouts/application.html.erb
<body ng-app="app">
<div ui-view=''></div>
and I'm getting the following error
http://localhost:3000/home.html 404 (Not Found)
But if I use template instead of templateUrl, and give inline HTML it works fine.
I'm using angular-rails-templates-0.1.3 and rails-4.2.0