Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228598

Passing tabs NavParams to tab

$
0
0

An easier way of doing things is to create an injectable params service as below. You can use this to pass params directly to a tab or multiple tabs rather than using the NavController. This is only meant to be a temporary solution until the issue is resolved.

// Require framework
import {Injectable} from "angular2/core";

@Injectable()
export class Params {
  public params;

  constructor () {
    this.params = {};
  }
}

Credit due here : http://stackoverflow.com/questions/35162308/ionic-2-passing-tabs-navparams-to-tab


Viewing all articles
Browse latest Browse all 228598

Trending Articles



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