Webjar integration of angular-datatables(http://l-lin.github.io/angular-datatables)
Include the JS file in your index.html
file:
<script src="/webjars/angular-datatables/0.0.3/angular-datatables.min.js"></script>
IMPORTANT: You must include the JS AFTER jQuery
and DataTables
!
If you want the Twitter Bootstrap
support, then add the CSS file:
<link rel="stylesheet" href="/webjars/angular-datatables/0.0.3/datatables.bootstrap.min.css">
Declare dependencies on your module app like this:
angular.module('myModule', ['datatables']);
<link rel="stylesheet" href="/webjars/datatables/1.10.1/css/jquery.dataTables.min.css">
<!--optionnal-->
<link rel="stylesheet" href="/webjars/angular-datatables/0.0.3/datatables.bootstrap.min.css">
<script src="/webjars/jquery/1.11.1/jquery.min.js"></script>
<script src="/webjars/datatables/1.10.1/js/jquery.dataTables.min.js"></script>
<script src="/webjars/angularjs/1.2.6/angular.min.js"></script>
<!-- needs to be included AFTER jQuery and Datatables -->
<script src="/webjars/angular-datatables/0.0.3/angular-datatables.min.js"></script>