angular.min.js中未捕获的错误注入器modulerr 40

时间:2016-05-17 17:46:39

标签: angularjs

我收到以下错误

  

angular.min.js:40未捕获错误:[$ injector:modulerr] http://errors.angularjs.org/1.5.5/ $ injector / modulerr?p0 = ngAnimate& p1 =错误%... lime%2520Text%25203%2FPackages%2Fmysamplefolder%2Fangular。 min.js%3A21 3A19%)

我的代码是

$(document).ready(function(){
  $('.insert').click(function(){
     $('.addItems').show( "slow" );
            });
  $('.close').click(function(){
  $('.addItems').hide('slide',{direction:'down'},'slow');
  });
        });


         function dataTable($scope)  {
        $scope.items = [
   {
        id:'11111',
        name:'JohnDoe Number1',
        city:'Angel',
        state:'AA',
        phone:'111-111-1111'
    },
        {
      id:'22222',
        name:'JaneDoe Number1',
        city:'Bigfoot',
        state:'AB',
        phone:'222-222-2222'
    },
    {
        id:'33333',
        name:'JohnDoe Number2',
        city:'Comfy',
        state:'AC',
        phone:'333-333-3333'
        },
        {
        id:'44444',
        name:'JaneDoe Number2',
        city:'Dreamy',
        state:'AD',
        phone:'444-444-4444'
        }];
        $scope.addItem = function(item) {
           $scope.items.push(item);
           $scope.item = {};
        }
        $scope.removeItem = function(index){
            $scope.items.splice(index,1);
        }
      };

1 个答案:

答案 0 :(得分:0)

通过<script>标签将ngAnimate模块包含在.html文件中。