Advertisement
Guest User

Untitled

a guest
Sep 27th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. <div *ngIf="searchResults.length > 0">
  2. <ion-item *ngFor="let searchResult of searchResults.details">
  3. <ion-avatar item-start>
  4. <!--<img src="img/Rabbit-Cage.jpg"> -->
  5. </ion-avatar>
  6. <h2>searchResult.user_id</h2>
  7. <h3>searchResult.email</h3>
  8. <p>searchResult.token</p>
  9. </ion-item>
  10. </div>
  11.  
  12. export class HomePage {
  13.  
  14. searchResults = {
  15. "details": [{
  16. "user_id": "73",
  17. "email": "ejazanwar777@gmail.com",
  18. "token": "217808036f0215fee13aee8925574899"
  19. }, {
  20. "user_id": "94",
  21. "email": "ejazanwar7dds77@gmail.com",
  22. "token": "f4e9a701f9dae581ecbc2abf1470f88f"
  23. }, {
  24. "user_id": "98",
  25. "email": "ejazanwar777dsggds@gmail.com",
  26. "token": "3481a3c17a752ef136a4eadeaa0813f4"
  27. }, {
  28. "user_id": "99",
  29. "email": "ejazanwar777@gmail.comsaasas",
  30. "token": "6bd7941c8b501f798c8854047a395bdf"
  31. }, {
  32. "user_id": "100",
  33. "email": "ejazanwar777jgfjgfjfg@gmail.com",
  34. "token": "127934324e39ad681826322632f91259"
  35. }, {
  36. "user_id": "107",
  37. "email": "ejazanwar77adsfdasf7@gmail.com",
  38. "token": "1a6c860fc6d6a2875f4de371dee22b22"
  39. }, {
  40. "user_id": "108",
  41. "email": "ejazanwar777@gmail.comdddd",
  42. "token": "684aae9542ddc76f1f78c4360afe8846"
  43. }, {
  44. "user_id": "109",
  45. "email": "jhddfhfdfdhdhfjhj@gmail.com",
  46. "token": "069fe4f0ec2210c1e8eb9400486f1718"
  47. }, {
  48. "user_id": "110",
  49. "email": "ejazanwar777@gmail.comssdssdd",
  50. "token": "a10f3620d18466a0d5780749401052ad"
  51. }]
  52. };
  53.  
  54. constructor(public navCtrl: NavController) {
  55.  
  56. }
  57.  
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement