ngRoute不再注入ngAnimate后工作 [英] ngRoute no longer working after injecting ngAnimate
本文介绍了ngRoute不再注入ngAnimate后工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想我的动画应用程序,使我注入ngAnimate但现在没有我的意见显示:
I wanted to animate my application so I injected ngAnimate but now none of my views are displaying:
var spApp = angular.module('spApp', ['ngRoute','ui.bootstrap', 'ngAnimate'])
.config(function($routeProvider, $locationProvider){
var rootUrl = '/Style%20Library/projects/spDash/app/partials/';
$routeProvider
.when('/home',
{
templateUrl: rootUrl+'home.html'
})
.when('/userView',
{
templateUrl: rootUrl+'userView.html',
controller: 'userCtrl'
})
.when('/groupView',
{
templateUrl: rootUrl+'groupsView.html',
controller: 'groupCtrl'
})
.when('/sitesView',
{
templateUrl: rootUrl+'sitesview.html',
controller: 'sitesCtrl'
})
.otherwise({redirectTo:'/home'});
//$locationProvider.html5Mode(true);
});
这是不正确的?
推荐答案
角度和动画之间的版本是不一样的。角是1.2.4,而动画是1.2.10。
The version between angular and animate weren't the same. Angular was 1.2.4 while animate was 1.2.10.
升级的角度解决问题。
Upgrading angular solved the issue.
感谢您尝试。
这篇关于ngRoute不再注入ngAnimate后工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文