angularjs ng-Animate不工作

时间:2017-02-09 07:04:36

标签: javascript angularjs ng-animate

我使用angularjs模块ngAnimate但这不起作用为什么我对angularjs.org使用相同的参考

<html>
 <head>
         <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js"></script>
         <script src="https://code.angularjs.org/1.6.1/angular-animate.js"></script>
         <link rel="style" href="css/style.css">
         <script src="js/app.js"></script>

 </head>
 <body ng-app="app">
          <div class="content" ng-controller="PrintCtrl">
              <h4>{{title}}</h4>
              <p>it's sample content welcome admin in your website</p>
          </div>
 </body>

var app = angular.module('app', ['ngAnimate']);

app.controller('PrintCtrl',['$scope',function($scope){
      $scope.title = "The title";
}]);

1 个答案:

答案 0 :(得分:0)

我注意到你的css标签与rel =“style”相关联。它应该是样式表而不是样式。如果你的css工作正常,我认为动画应该有效

相关问题