Advertisement
Guest User

Untitled

a guest
Aug 11th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. "Error: [ngRepeat:dupes] http://errors.angularjs.org/1.5.8/ngRepeat/dupes?p0=req%20in%20requiterTable&p1=string%3A%22&p2=%22
  2. N/<@http://localhost:56557/Scripts/angular.min.js:6:412
  3. Je</<.compile/</<@http://localhost:56557/Scripts/angular.min.js:302:477
  4. vf/this.$get</m.prototype.$watchCollection/<@http://localhost:56557/Scripts/angular.min.js:142:77
  5. vf/this.$get</m.prototype.$digest@http://localhost:56557/Scripts/angular.min.js:143:181
  6. vf/this.$get</m.prototype.$apply@http://localhost:56557/Scripts/angular.min.js:146:111
  7. l@http://localhost:56557/Scripts/angular.min.js:97:320
  8. J@http://localhost:56557/Scripts/angular.min.js:102:34
  9. gg/</t.onload@http://localhost:56557/Scripts/angular.min.js:103:4
  10. EventHandlerNonNull*gg/<@http://localhost:56557/Scripts/angular.min.js:102:343
  11. n@http://localhost:56557/Scripts/angular.min.js:99:53
  12. m/p<@http://localhost:56557/Scripts/angular.min.js:96:262
  13. e/<@http://localhost:56557/Scripts/angular.min.js:131:20
  14. vf/this.$get</m.prototype.$eval@http://localhost:56557/Scripts/angular.min.js:145:343
  15. vf/this.$get</m.prototype.$digest@http://localhost:56557/Scripts/angular.min.js:142:412
  16. vf/this.$get</m.prototype.$apply@http://localhost:56557/Scripts/angular.min.js:146:111
  17. EventHandlerNonNull*gg/<@http://localhost:56557/Scripts/angular.min.js:102:343
  18. n@http://localhost:56557/Scripts/angular.min.js:99:53
  19. m/p<@http://localhost:56557/Scripts/angular.min.js:96:262
  20. e/<@http://localhost:56557/Scripts/angular.min.js:131:20
  21. vf/this.$get</m.prototype.$eval@http://localhost:56557/Scripts/angular.min.js:145:343
  22. vf/this.$get</m.prototype.$digest@http://localhost:56557/Scripts/angular.min.js:142:412
  23. vf/this.$get</m.prototype.$apply@http://localhost:56557/Scripts/angular.min.js:146:111
  24. Bc/c/<@http://localhost:56557/Scripts/angular.min.js:20:486
  25. h/<.invoke@http://localhost:56557/Scripts/angular.min.js:41:454
  26. Bc/c@http://localhost:56557/Scripts/angular.min.js:20:407
  27. Bc@http://localhost:56557/Scripts/angular.min.js:21:179
  28. fe@http://localhost:56557/Scripts/angular.min.js:20:1
  29. @http://localhost:56557/Scripts/angular.min.js:317:386
  30. b@http://localhost:56557/Scripts/angular.min.js:189:487
  31. Sf@http://localhost:56557/Scripts/angular.min.js:37:125
  32. Rf/d@http://localhost:56557/Scripts/angular.min.js:37:74
  33. EventListener.handleEvent*.on/h@http://localhost:56557/Scripts/angular.min.js:195:22
  34. .on@http://localhost:56557/Scripts/angular.min.js:195:108
  35. O.prototype[b]@http://localhost:56557/Scripts/angular.min.js:198:332
  36. O.prototype.ready@http://localhost:56557/Scripts/angular.min.js:190:40
  37. @http://localhost:56557/Scripts/angular.min.js:317:355
  38. @http://localhost:56557/Scripts/angular.min.js:6:2
  39.  
  40. app.service('RequitersService', function ($http) {
  41. this.GetAllRquiters = function ()
  42. {
  43. return $http.get("api/Requiters");
  44. }
  45. });
  46.  
  47. "[{"id":2,"name":"Amit","email":"amit@gmail.com","mobile":"9999999999","skill":"Asp.net","profession":"Software Engineer","exp":"2","location":"Delhi","resume":null,"is_type":null,"is_active":false,"last_login":"Jul 5 2016 4:49PM","date_time":null}]"
  48.  
  49. app.controller('Requiters', function ($scope, RequitersService) {
  50. var result = RequitersService.GetAllRquiters();
  51. result.then(function (x) {
  52. debugger;
  53. alert(x.data);
  54. $scope.requiterTable = x.data;
  55. });
  56. });
  57.  
  58. <table >
  59. <tr ng-repeat="req in requiterTable">
  60. <td>{{req.id}}</td>
  61. <td>{{req.name}}</td>
  62. <td>{{req.email}}</td>
  63. <td>{{req.mobile}}</td>
  64. <td>{{req.location}}</td>
  65. </tr>
  66. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement