Require navParams, if not goto parent

Does anyone know how I can require navParams?

Example: If I have a list of companies, and I have a click function:

itemTapped(event, item) {
this.navCtrl.push(‘CompanyDetails’, {
item: item

If I do an edit and it refreshes the page, I keep getting an error saying it cannot read property XXX of undefined.

So, how can I force the navParams have data, if not go to the parent view.

You could test a Promise in ionViewCanEnter(). My solution to this problem, though, was to eliminate use of navParams, and instead to pass information with a provider.

Who is this “it” and how does it “refresh the page”?