I'm new to angular and ng-grid, I am calling a simple static json file but the grid is not showing at all, the message I'm getting is:
Cannot set property 'grid' of undefined
Can anyone help?
My code looks like this
angular.module('healthyLivingApp')
.controller('SubscribersCtrl', function ($scope,$http) {
$http.get('http://localhost:9000/subscribers.json').success(function(data){
$scope.subscribers = data;
});
$scope.gridOptions = {
data:'subscribers'
}
});
app.js
.module('healthyLivingApp', [
'ngAnimate',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch',
'ngGrid',
'ui.bootstrap'
])
HTML
<h1>Subscribers</h1>
<div class="gridStyles" ng-grid="gridOptions">
</div>
I'm using bower, Angular "1.3.12", ng-grid " "2.0.14"", jQuery " 2.1.3"