I'm following this tutorial for making a rails app with angular and have got as far as this section: https://thinkster.io/angular-rails/#integrating-the-front-end-with-the-asset-pipeline-moving-angular-templates-into-the-asset-pipeline-and-structuring-the-javascripts-folder
Nothing is showing up on my page though it says
< !-- uiView: undefined -->
Here's the HTML:
<html>
<head>
<title>TestApp</title>
<%= stylesheet_link_tag 'application', media: 'all' %>
<%= javascript_include_tag 'application' %>
<%= csrf_meta_tags %>
</head>
<body ng-app="sfslaps">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<ui-view></ui-view>
</div>
</div>
</body>
</html>
</html>
And the angular:
angular.module('sfslaps', ['ui.router', 'templates'])
.config([
'$stateProvider',
'$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('home', {
url: '/home',
templateUrl: 'home/_home.html',
controller: 'MainCtrl'
})
.state('posts', {
url: '/posts/{id}',
templateUrl: 'posts/_post.html',
controller: 'PostsCtrl'
});
$urlRouterProvider.otherwise('home');
}]);
What's causing it to say this and not display any of my UI view? all the HTML is there in the ui-view, but it says undefined beforehand.
