Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- This one works fine -->
- <ons-template id="directory.html">
- <ons-navigator var="app.navi">
- <ons-page ng-controller="directoryControl">
- <ons-toolbar>
- <div class="center">Directory List</div>
- </ons-toolbar>
- <ons-list>
- <ons-list-item modifier="chevron" class="list-item-container" ng-repeat="PostCategory in PostCategories">
- <ons-row ng-click="setCurrentCategory(PostCategory.slug); app.navi.pushPage('directory-page.html', { animation : 'slide' } )">
- <ons-col>
- <div class="name">
- {{PostCategory.title}}
- </div>
- </ons-col>
- <ons-col width="40px"></ons-col>
- </ons-row>
- </ons-list-item>
- </ons-list>
- </ons-page>
- </ons-navigator>
- </ons-template>
- <!-- This one Gives the error while is use the same method above template it worked-->
- <ons-template id="directory-page.html">
- <ons-navigator var="app.navi" >
- <ons-page ng-controller="directoryCategoryListing">
- <ons-toolbar>
- <div class="left"><ons-back-button>Back</ons-back-button></div>
- <div class="center">{{CurrentCategory}}</div>
- </ons-toolbar>
- <ons-list>
- <ons-list-item modifier="chevron" class="list-item-container" ng-repeat="PostDetail in PostDetails">
- <ons-row ng-click="setCurrentListing(PostDetail.id); app.navi.pushPage('listing-details.html', { animation : 'slide' } )">
- <ons-col width="95px">
- <img src="{{PostDetail.attachments[0].images.square1.url}}" class="thumbnail" ng-if="PostDetail.attachments[0].url != null">
- <img src="images/location1.png" class="thumbnail" ng-if="PostDetail.attachments[0].url == null">
- </ons-col>
- <ons-col>
- <div class="name">
- {{PostDetail.title}}
- </div>
- <div class="desc">
- {{PostDetail.excerpt | htmlToPlaintext}}
- </div>
- </ons-col>
- <ons-col width="40px"></ons-col>
- </ons-row>
- </ons-list-item>
- </ons-list>
- </ons-page>
- </ons-navigator>
- </ons-template>
- <!-- Here is want to reach -->
- <ons-template id="listing-details.html">
- <ons-page ng-controller="ListingDetailsCtrl" modifier="listing-details">
- <ons-toolbar modifier="transparent">
- <div class="right">
- <ons-toolbar-button><ons-icon icon="ion-ios-chatboxes" style="color: white"></ons-icon></ons-toolbar-button>
- </div>
- </ons-toolbar>
- </ons-page>
- </ons-template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement