Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. <!-- This one works fine -->
  2. <ons-template id="directory.html">
  3. <ons-navigator var="app.navi">
  4. <ons-page ng-controller="directoryControl">
  5. <ons-toolbar>
  6. <div class="center">Directory List</div>
  7. </ons-toolbar>
  8. <ons-list>
  9.  
  10. <ons-list-item modifier="chevron" class="list-item-container" ng-repeat="PostCategory in PostCategories">
  11. <ons-row ng-click="setCurrentCategory(PostCategory.slug); app.navi.pushPage('directory-page.html', { animation : 'slide' } )">
  12. <ons-col>
  13. <div class="name">
  14. {{PostCategory.title}}
  15. </div>
  16. </ons-col>
  17. <ons-col width="40px"></ons-col>
  18. </ons-row>
  19. </ons-list-item>
  20. </ons-list>
  21. </ons-page>
  22. </ons-navigator>
  23. </ons-template>
  24.  
  25.  
  26. <!-- This one Gives the error while is use the same method above template it worked-->
  27.  
  28. <ons-template id="directory-page.html">
  29. <ons-navigator var="app.navi" >
  30. <ons-page ng-controller="directoryCategoryListing">
  31. <ons-toolbar>
  32. <div class="left"><ons-back-button>Back</ons-back-button></div>
  33. <div class="center">{{CurrentCategory}}</div>
  34. </ons-toolbar>
  35.  
  36. <ons-list>
  37. <ons-list-item modifier="chevron" class="list-item-container" ng-repeat="PostDetail in PostDetails">
  38. <ons-row ng-click="setCurrentListing(PostDetail.id); app.navi.pushPage('listing-details.html', { animation : 'slide' } )">
  39. <ons-col width="95px">
  40. <img src="{{PostDetail.attachments[0].images.square1.url}}" class="thumbnail" ng-if="PostDetail.attachments[0].url != null">
  41. <img src="images/location1.png" class="thumbnail" ng-if="PostDetail.attachments[0].url == null">
  42. </ons-col>
  43. <ons-col>
  44. <div class="name">
  45. {{PostDetail.title}}
  46. </div>
  47.  
  48. <div class="desc">
  49. {{PostDetail.excerpt | htmlToPlaintext}}
  50. </div>
  51. </ons-col>
  52. <ons-col width="40px"></ons-col>
  53. </ons-row>
  54. </ons-list-item>
  55. </ons-list>
  56. </ons-page>
  57. </ons-navigator>
  58. </ons-template>
  59.  
  60.  
  61. <!-- Here is want to reach -->
  62.  
  63. <ons-template id="listing-details.html">
  64. <ons-page ng-controller="ListingDetailsCtrl" modifier="listing-details">
  65. <ons-toolbar modifier="transparent">
  66. <div class="right">
  67. <ons-toolbar-button><ons-icon icon="ion-ios-chatboxes" style="color: white"></ons-icon></ons-toolbar-button>
  68. </div>
  69. </ons-toolbar>
  70. </ons-page>
  71. </ons-template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement