Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table id="example" class="table table-bordered table-striped table-hover" data-search="true">
- <thead>
- <tr class="text-white clickable-row" bgcolor="#578ebe" >
- <th id="white-text"> # </th>
- <th id="white-text"> Name </th>
- <th id="white-text"> DBA </th>
- <th id="white-text"> Facility ID </th>
- <th id="white-text"> Active </th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="hospital in hospital_filtered = hospitals">
- <td> <a ng-click="click(hospital)"> {{ hospital.hospital_id }} </td>
- <td> <a ng-click="click(hospital)"> {{ hospital.hospital_name }} </td>
- <td> <a ng-click="click(hospital)"> {{ hospital.hospital_dba }} </td>
- <td> <a ng-click="click(hospital)"> {{ hospital.facility_id }} </td>
- <td> <a ng-click="click(hospital)"> {{ hospital.active_flag }} </td>
- </tr>
- </tbody>
- </table>
- $http.get("/hospitals/all", {
- params: {authtoken: $rootScope.auth_token}}
- )
- .then(function(response) {
- // Request completed successfully
- //console.log(response);
- $scope.hospitals=response.data
- }, function(x) {
- // Request error
- console.log("Error");
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement