Guest User

Untitled

a guest
Dec 15th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <div ng-repeat="x in hotels">
  2. <p ng-repeat="y in x.data">{{y.hotel_name}}</p>
  3. </div>
  4.  
  5. {
  6. status: 200,
  7. message: "Packages Found",
  8. data: [
  9. {
  10. hotel_id: "40",
  11. company_id: "2",
  12. user_id: "17",
  13. hotel_name: "Zen International",
  14. hotel_description: "Good Hotel"
  15. }
  16. ]
  17. }
  18.  
  19. <div ng-repeat="x in hotels">
  20. <p ng-repeat="y in x.data">{{y.hotel_name}}</p>
  21. </div>
  22.  
  23. <div>
  24. <p ng-repeat="y in hotels.data">{{y.hotel_name}}</p>
  25. </div>
  26.  
  27. <div>
  28. <p ng-repeat="y in hotels.data">{{y.hotel_name}}</p>
  29. </div>
  30.  
  31. angular.module('YourApp', [])
  32. .controller('YourCtrl', function($scope) {
  33.  
  34. $scope.dataList={
  35. status: 200,
  36. message: "Packages Found",
  37. data: [
  38. {
  39. hotel_id: "40",
  40. company_id: "2",
  41. user_id: "17",
  42. hotel_name: "Zen International",
  43. hotel_description: "Good Hotel"
  44. }
  45. ]
  46. }
  47.  
  48. });
  49.  
  50. <div ng-app="YourApp" ng-controller="YourCtrl">
  51. <div>
  52. <p ng-repeat="item in dataList.data">{{item.hotel_name}}</p>
  53. </div>
  54. </div>
Add Comment
Please, Sign In to add comment