<div class="container">
    <div class="row">
        <div class="col-md-8">

            <tr>
                <td><a class="btn btn-info" href="#" ui-sref="createEmployee">Add</a></td>
            </tr>
            <h4>{{emp.length}}</h4>

            <input ng-model="keyword" type="text" placeholder="Tìm kiếm" ng-change="currentPage =1">
            <table class="table" >
                <thead>
                <tr>
                    <td colspan="12">Thông tin nhân viên</td>
                </tr>
                <tr>
                    <th>ID</th>
                    <th>UserName</th>
                    <th>FirstName</th>
                    <th>LastName</th>
                    <th>EmailAddress</th>
                    <th>Phone</th>
                    <th>Education</th>
                    <th>HomeTown</th>
                    <th>Department</th>
                    <th>Position</th>
                    <th colspan="2">Menu</th>
                </tr>
                </thead>
                <tbody>
                <tr class="vide" ng-repeat="emp in employess | filter:{username:keyword} | lmto:3:3*(currentPage-1) track by $index">
                    <td>{{$index + 1}}</td>
                    <td>{{emp.username}}</td>
                    <td>{{emp.firstName}}</td>
                    <td>{{emp.lastName}}</td>
                    <td>{{emp.emailAddress}}</td>
                    <td>{{emp.phoneNumber}}</td>
                    <td>{{emp.education}}</td>
                    <td>{{emp.homeTown}}</td>
                    <td>{{emp.department}}</td>
                    <td>{{emp.position}}</td>
                    <td><a href="#" ng-click="updateEmp(emp);">Edit</a>
                    <td><a href="#" ng-click="deleteEmp(emp);">Delete</a>
                    </td>

                </tr>


                </tbody>
            </table>


<!--            <uib-pagination ng-if="employess.length" total-items="getTotalItems()"  boundary-link-numbers="true" ng-model="currentPage" ng-change="pageChangedIndex()"  rotate="true" items-per-page="employeePerPage"></uib-pagination>-->
            <uib-pagination  total-items="getTotalItems()"  boundary-link-numbers="true" ng-model="currentPage" ng-change="pageChangedIndex()"  rotate="true" items-per-page="employeePerPage"></uib-pagination>



        </div>
    </div>

</div>
