Javascript 让简单的AngularJS项目与AngularUI路由器一起工作

Javascript 让简单的AngularJS项目与AngularUI路由器一起工作,javascript,angularjs,angular-ui-router,Javascript,Angularjs,Angular Ui Router,我一直在尝试使用AngularJS和AngularUI路由器库实现一个示例项目,默认情况下它应该查看home.html内容,但这不起作用,我一直在获得Hello World,但没有如期获得home.html的内容 index.html <html> <head> <meta charset="UTF-8"> <script src="js/libs/angular.js"></s

我一直在尝试使用AngularJS和AngularUI路由器库实现一个示例项目,默认情况下它应该查看home.html内容,但这不起作用,我一直在获得Hello World,但没有如期获得home.html的内容

index.html

<html>
        <head>
            <meta charset="UTF-8">
            <script src="js/libs/angular.js"></script>
            <script src="js/libs/angular-ui-router.min.js"></script>
            <script src="js/libs/angular-animate.js"></script>
            <script src="js/app.js"></script>
            <script src="js/controller/homeController.js"></script>
        </head>
        <body ng-app="myApp">
            Hello World
            <div ui-view="viewContent"></div>
        </body>
</html>
home.html

<div id="wrapper">Home</div>
我有什么遗漏吗


编辑:已将ng应用添加到标记,仍不工作

您缺少ng应用或删除viewContent。这已修复,谢谢!
<div id="wrapper">Home</div>
angular.module('myApp.controllers', ['myApp']);

angular.module('myApp.controllers')
.controller('HomeCtrl', function($scope) {

});