Ionic 2 tutorial project didn't show item-details page properly (Typescript)


I’ve just started the Ionic 2 tutorial, and when i create the project passing the –ts for Typescript variant, the item details page didn’t work correctly. The content of Details Page appears ever on the same page of “My Fist List”, instead of work like the JS variant that pops another page normally.

Anyone have seen this when are creating the tutorial?


Yeah I had the same thing… Easy fix…
add this line at the top of the list.ts
import {ItemDetailsPage} from ‘…/item-details/item-details’;

and fix the line near the bottom…
this.nav.push(ItemDetailsPage, {
instead of
this.nav.push(listPage, {