Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

rootParams in ion-nav not returning data #152

Open
ionitron-bot bot opened this issue Nov 28, 2018 · 0 comments
Open

rootParams in ion-nav not returning data #152

ionitron-bot bot opened this issue Nov 28, 2018 · 0 comments
Labels

Comments

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 28, 2018

Original issue by @zuna003 on 2016-12-19T23:32:35Z

Ionic version: (check one with "x")
[ ] 1.x
[ x] 2.x

I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

Passing data in rootParams
Expected behavior:

Return data

Related code:
Page 1:
this.test = {x: 'For Testing'};

<ion-nav [root]="rootPage" [rootParams]="test"></ion-nav>

Page 2:
console.log(this.navParams); // no return data
or
console.log(this.navParams.get('x')); // no return data

Ionic info:
System information:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.47
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.9.1
Xcode version: Not installed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

0 participants