I want to implement ng-table for my project Spring and angular JS HTML5 but the problem when i add the ng-table nothing worked .
---App.JS----
angular
.module('TimeLeaveProject', [
'ngAnimate',
'ngCookies',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch',
'ngTable'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'DemoCtrl'
})
.when('/about', {
templateUrl: 'views/about.html',
controller: 'AboutCtrl'
})
.otherwise({
redirectTo: '/'
});
});
--Controller AngularJS ---
angular.module('TimeLeaveProject', ['ngTable'])
.controller('DemoCtrl', function($scope) {
alert("demoCTRL");
$http.get('/users/all').
success(function(data) {
$scope.users = data;
});
})
---HTML Page--
<div ng-controller="DemoCtrl" style="margin-top: 10%;text-align: center;" class="jumbotron">
<h2>Users</h2>
<table ng-table class="table">
<tr ng-repeat="user in users">
<td data-title="'Name'">{{user.username}}</td>
<td data-title="'Age'">{{user.password}}</td>
</tr>
</table>
and i add the local link for ng-table in my index.html page . The problem that i got nothing , all the views doesn't work .