How to pass data to Modal ionic 2

Here you go:

{{theItem?.title}}

When the page is loaded theItem is not yet defined respectively is null, that’s why you get the error. Adding ? will manage the fact that that variable could be null, doing nothing if so.

the struggle is real , reedrichards u are the best realy … :smiley: this could be not found in the inioc 2 documentation u saved my ass today , now its time to open a beer “cheers”.

actually, just for the record, the ? tricks is an angular2 thing, therefore I think it’s normal that it doesn’t appear in the Ionic documentation

if you’re opening a beer, I guess it worked, congrats then!

have fun