Angular UI路由器转换错误

时间:2017-01-01 08:05:25

标签: angularjs angular-ui-router angular-ui-router-extras

“angular 1.6.1”,“angular-ui-router 0.3.1”,所有ui视图已更改/正常工作但我在控制台窗口中出现以下错误,我不知道原因。

enter image description here

我的HTML代码是

author

app.js文件

<!DOCTYPE html>
<html lang="en" data-ng-app="manoj">
<head>
    <meta charset="UTF-8">
    <title>My App</title>
    <link rel="stylesheet" href="assets/style/angular-material.css">
    <link rel="stylesheet" href="assets/style/materialdesignicons.min.css">
    <link rel="stylesheet" href="assets/style/style.css">
</head>
<body>
<div ui-view class="main-body"></div>

<script src="assets/js/jquery-1.11.3.min.js"></script>
<!--Angular Library-->
<script src="angular/angular.min.js"></script>
<script src="angular/angular-ui-router.min.js"></script>

<script src="angular/angular-animate.min.js"></script>
<script src="angular/angular-aria.min.js"></script>
<script src="angular/angular-messages.min.js"></script>

<!-- Angular Material Library -->
<script src="assets/js/angular-material.min.js"></script>

<!--App Scripts-->
<script src="app/app.js"></script>
<script src="app/dashboard/dashboard.js"></script>
<script src="app/login/login.js"></script>
</body>
</html>

请有人帮助我......

1 个答案:

答案 0 :(得分:0)

您需要更新ui-router,尝试使用&#34; angular-ui-router 1.0.3&#34;