@samfung wrote:
I have a simple page to show a list of items. When I click on an item, it triggers
pushItemPage(folder)
I would getEXCEPTION: TypeError: Cannot set property 'lastInBinding' of undefined
error. Bothconsole.log()
statements were executed, butnavController
doesn't push the LoginPage.I'm using
2.0.0-beta.0
right now. I looked at the ionic-conference-app and didn't seem much difference other than the fact that the conference app is using alpha 57. So I don't really know what causes the problem.folder.html
<ion-navbar *navbar> <ion-title>Folders</ion-title> </ion-navbar> <ion-content class="folder"> <ion-list> <ion-item-sliding *ngFor="#folder of folders" #slidingItem> <ion-item (click)="pushItemPage(folder)"> {{ folder.name }} </ion-item> <ion-item-options> <button primary (click)="presentRenameFolderPrompt(folder, slidingItem)">Rename</button> <button danger (click)="presentDeleteFolderPrompt(folder, slidingItem)">Delete</button> </ion-item-options> </ion-item-sliding> </ion-list> </ion-content>
folder.ts
pushItemPage(folder) { console.log('You click on a folder:'); this._navController.push(ItemPage, { folder: folder }); console.log('pushed'); }
Posts: 1
Participants: 1