Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

NavController doesn't push and returns property error

$
0
0

@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 get EXCEPTION: TypeError: Cannot set property 'lastInBinding' of undefined error. Both console.log() statements were executed, but navController 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

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>