SHARE
TWEET
Untitled
a guest
May 25th, 2016
52
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- <table ng-table="userlistctrl.tableParams" class="table" show-filter="true">
- <tr ng-repeat="user in $users">
- <td title="'Login'" filter="{login:'text'}" sortable="'login'">{{user.login}}</td>
- <td title="'name'" filter="{name:'text'}" sortable="'name'">{{user.name}}</td>
- <td title="'firstname'" filter="{firstname:'text'}" sortable="'firstname'">{{user.firstname}}</td>
- </tr>
- </table>
- eCollectionModule.controller('UserListCtrl',function(NgTableParams){
- var self = this;
- var users = [
- {login : "000", name : "bon", firstname : "jean"},
- {login : "111", name : "ajosol", firstname : "marc"},
- {login : "222", name : "terieur", firstname : "alain"}
- ];
- self.tableParams = new NgTableParams({}, { dataset: users});
- });
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.
