ui-view一直加载不出来,求解答。控制台没报错

这是页面代码

<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width">
  <title>WebApp</title>
  <link rel="stylesheet" href="/css/index.css" media="screen" title="no title" charset="utf-8">
</head>
<body>
  <div ui-view></div>
<script type="text/javascript">
  document.getElementsByTagName('html')[0].style.fontSize = window.screen.width/10+'px';
</script>
<script src="vendor/angular/angular.min.js" charset="utf-8"></script>
<script src="vendor/angular-ui-router/release/angular-ui-router.min.js" charset="utf-8"></script>
<script src="vendor/angular-cookies/angular-cookies.min.js" charset="utf-8"></script>
<script src="vendor/angular-validation/dist/angular-validation.js" charset="utf-8"></script>
<script src="vendor/angular-animate/angular-animate.min.js" charset="utf-8"></script>
<script src="js/index.js" charset="utf-8"></script>
</body>
</html>

main.html

<div app-head></div>

指令
`angular.module(‘app’).
controller(‘mainCtrl’, [‘$http’, ‘$scope’, function($http, $scope){
$http.get(‘/data/positionList.json’).success(function(resp){

$scope.list = resp;

});
}]);
angular.module(‘app’).directive(‘appHead’, [ function(){
return {

restrict: 'A',
replace: true,
templateUrl: 'view/template/head.html',

};
}]);

`
路由配置

angular.module('app', ['ui.router', 'ngCookies', 'validation', 'ngAnimate']);
angular.module('app').config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
  $stateProvider.state('main', {
    url: '/main',
    templateUrl: 'view/main.html',
    controller: 'mainCtrl'
    
  });
  $urlRouterProvider.otherwise('/main');
}])

.1+454554455

  • JS输入编辑框实现输入@提示@人
  • ajax传数据到后台?
  • 哪有完整的vuejs项目可以看看啊! 想慢慢看项目上手!
  • 关于数据绑定的小问题
  • (Angular) 怎样(或能否)在 filter filter 筛选函数中使用第二个参数?
  • 手机版网站导航条水平滑动减速效果是如何实现的
  • 为什么这么简单的函数都报错?
  • 关于 gulp-concat 合并 js的先后顺序
  • vue如何引用第三方js文件?
  • js创建对象
  • 如何解决jsDoc生成文档与代码自然顺序不符的情况?