ngAnimate模块的安装不工作 [英] Installation of ngAnimate Module not working

查看:201
本文介绍了ngAnimate模块的安装不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法得到NG-动画在现有1.2应用程序的工作。我跟着API中的检查表,但不应用适当的动画类。

I can't seem to get ng-animate to work in an existing 1.2 application. I've followed the check list in the API, but it isn't applying the appropriate animate classes.

我觉得我必须失去了一些东西在安装过程中傻了。下面是我做了什么:

I feel like I must be missing something silly in the installation process. Here's what I've done:

1 - 我加载角度和角动画在我的文档,这里的负责人:

1 - I'm loading angular and angular-animate in the head of my document here:

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js"></script> <!-- load angular -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular-animate.js"></script> <!-- load angular animate -->

2 - 我加入的模块在我的应用程序在此声明的依赖关系:

2 - I am adding the module as a dependency in my app declaration here:

var app = angular.module('app', ['mainCtrl', 'mainService', 'ngRoute', 'ngAnimate', 'sortable', 'services.breadcrumbs']);

这就是它!应该工作的权利?所有我使用的 NG-展示纳克隐藏类时得到的。我期待得到NG隐藏添加和NG-隐藏,删除类为好,但一切都没有改变。

And that's it! It should be working right? All I get when using ng-show is the ng-hide class. I was expecting to get the ng-hide-add and ng-hide-remove classes as well, but nothing has changed.

我在想什么?感谢您的帮助。

What am I missing? Thanks for the help.

推荐答案

我不认为这应该算作一个答案,但如果我用角的beta版本(1.3.0-beta.5)它工作得很好。我还是想知道为什么的稳定版本是不能正常工作,但测试版本是...

I don't think this should count as an answer, but it works just fine if I use angular's beta release (1.3.0-beta.5). I still would like to know why the stable release is not working properly, but the beta release is...

这篇关于ngAnimate模块的安装不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆