SHARE
TWEET

Untitled

a guest May 25th, 2016 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <table ng-table="userlistctrl.tableParams" class="table" show-filter="true">
  2.  
  3.     <tr ng-repeat="user in $users">
  4.    
  5.         <td title="'Login'" filter="{login:'text'}" sortable="'login'">{{user.login}}</td>
  6.         <td title="'name'" filter="{name:'text'}" sortable="'name'">{{user.name}}</td>
  7.         <td title="'firstname'" filter="{firstname:'text'}" sortable="'firstname'">{{user.firstname}}</td>
  8.    
  9.     </tr>
  10.    
  11. </table>
  12.  
  13.  
  14.  
  15. eCollectionModule.controller('UserListCtrl',function(NgTableParams){
  16.    
  17.     var self = this;
  18.    
  19.     var users = [
  20.         {login : "000", name : "bon", firstname : "jean"},
  21.         {login : "111", name : "ajosol", firstname : "marc"},
  22.         {login : "222", name : "terieur", firstname : "alain"}
  23.     ];
  24.    
  25.     self.tableParams = new NgTableParams({}, { dataset: users});
  26. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top