I have set up an angular application which uses the pivot.js tp build a 
pivot table. i am getting an error

"Cannot read property 'derivers' of undefined"


*HTML:* 

     <body id="main"> 
>         <section> 
>                    <div class="panel panel-default">
>                   <div id="productsPivotTableOutput" 
> style="margin:30px;"></div>
>                    </div>
>         </section>
>         </body> 


*App.Js: *

  
> routerApp.controller('productPivot',['$scope','$http','$objectstore',function($scope,$http,$objectstore){
>         $scope.products =  [];
>         var client = 
> $objectstore.getClient("com.duosoftware.test","product");
>            client.onGetMany(function(data){
>           if (data){
>               $scope.products = data;
>                var derivers = $.pivotUtilities.derivers;
>             $("#productsPivotTableOutput").pivotUI($scope.products, {
>                 rows: ["Name"],
>                 cols: ["CanBeSold"],
>                 rendererName: "Table"
>             });
>              
>           }
>           }); 
>          client.getByFiltering("*");
>     }]);


do i have to inject pivot js somewhere? This is the sample i Pivot Table 
<https://github.com/nicolaskruchten/pivottable/issues/208>! 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to