Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <table id="example" class="table table-bordered table-striped table-hover" data-search="true">
  2. <thead>
  3. <tr class="text-white clickable-row" bgcolor="#578ebe" >
  4. <th id="white-text"> # </th>
  5. <th id="white-text"> Name </th>
  6. <th id="white-text"> DBA </th>
  7. <th id="white-text"> Facility ID </th>
  8. <th id="white-text"> Active </th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. <tr ng-repeat="hospital in hospital_filtered = hospitals">
  13. <td> <a ng-click="click(hospital)"> {{ hospital.hospital_id }} </td>
  14. <td> <a ng-click="click(hospital)"> {{ hospital.hospital_name }} </td>
  15. <td> <a ng-click="click(hospital)"> {{ hospital.hospital_dba }} </td>
  16. <td> <a ng-click="click(hospital)"> {{ hospital.facility_id }} </td>
  17. <td> <a ng-click="click(hospital)"> {{ hospital.active_flag }} </td>
  18. </tr>
  19. </tbody>
  20. </table>
  21.  
  22. $http.get("/hospitals/all", {
  23. params: {authtoken: $rootScope.auth_token}}
  24. )
  25. .then(function(response) {
  26. // Request completed successfully
  27. //console.log(response);
  28. $scope.hospitals=response.data
  29.  
  30. }, function(x) {
  31. // Request error
  32. console.log("Error");
  33. });
  34. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement