Comments (16)
@karlvd thanks for the feedback. I will use the repo you provided to do some testing and fix this.
from ionic-super-tabs.
Fixed in 2.3.3
from ionic-super-tabs.
Fantastic work, thank you!
@mforloni works for me
Create an object to pass on as rootParams
this.rootParams = {
myVar: 'someValue'
};
Add it to the super-tab element
<super-tab [root]="'SomePage'" [rootParams]="rootParams" title="Title" id="myTab"></super-tab>
Pick it up in the constructor on the tab page
this.myVar = navParams.get('myVar');
from ionic-super-tabs.
Yes, I have the same issue. It is loaded, but no displayed at the template.
Thanks @karlvd, downgrading to 2.1.0 solved the issue for now.
from ionic-super-tabs.
same issue for me . @palbaladejo how you downgrade it ? share command
from ionic-super-tabs.
@palbaladejo to downgrade, just update your package.json to
"ionic2-super-tabs": "2.1.0"
run
npm install
from ionic-super-tabs.
thanks
from ionic-super-tabs.
@ihadeed I have done a few more tests related to this issue and updated the repo to cover more scenarios
repo
The page for the second tab contains various scenarios for loading data, my conclusions so far:
- Any data set in ionViewDidLoad() doesn´t bind to the template, including just assigning a value to a var, the event fires but the data can´t be accessed by the template
- Data such as assigning a value to a var works using ngOnInit() instead of ionViewDidLoad()
- Calling a provider from ngOnInit() fires the success callback but any data set in it is not accessible by the template
- Based on this, the problem is not related to http, rather something related to scope and binding
ionViewDidLoad() {
console.log('load tab2');
this.anything3 = 'Anthing set in ionViewDidLoad()';
// Any data set here is not accessible
this.stuff1 = {
stuff: ['x', 'y', 'z']
}
this.stuffProvider.getStuff().subscribe((response) => {
// Any data set here is not accesible
this.stuff2 = {
stuff: response.data
};
// This fires correctly
console.log('provider success 1');
// This log is printed
console.log(this.stuff2);
}, (error) => {
console.log('provider error 1 : ' + error);
});
}
ngOnInit() {
this.anything4 = 'Anthing set in ngOnInit()';
// Any data set here is accessible
this.stuff3 = {
stuff: ['x', 'y', 'z']
};
this.stuffProvider.getStuff().subscribe((response) => {
// Any data set here is not accesible
this.stuff4 = {
stuff: response.data
};
// Not even this
this.stuff5 = {
stuff: ['x', 'y', 'z']
};
// This fires correctly
console.log('provider success 2');
}, (error) => {
console.log('provider error 2 : ' + error);
});
}
from ionic-super-tabs.
Could you please update to [email protected]
and let me know if this issue is fixed?
from ionic-super-tabs.
Same result unfortunately :(
from ionic-super-tabs.
I have the same problem! please, fix it on time :(
from ionic-super-tabs.
rootParams not work!! How can I pass parameters to tabs?
from ionic-super-tabs.
In my app performance is still not good :(
from ionic-super-tabs.
@karlvd I have a big problem.
After the fix, the component work but I can change the content on the tab only at the first loading and when I don't change the tab. Why?
Example, if I open one new tab and then I return on the previous tab and I change its content (ex. one icon) this not display the modify.
Can you help me?
from ionic-super-tabs.
#61 i guess its related to this?
from ionic-super-tabs.
@kodeine no I don't think they're related. This issue here is fixed.
from ionic-super-tabs.
Related Issues (20)
- tab indicator is not located correctly in firefox when padding exists
- ReIndexTabs undefined issue renders the tab blank HOT 2
- Super Tabs Toolbar pushed up when keyboard is activated HOT 1
- Need help on Super tab containing Table with horizontal scrollbar and fixed column HOT 2
- How to place super-tabs inside ion-toolbar HOT 2
- Framework Delegate is Missing Zone <root> (ion-nav root component not showing in browser) HOT 2
- When i prefetched new tabs list and concat it to the current tabs list the tab toolbar scrolls back to the last selected tab.
- How to change color from indicator and icon on the app?
- in 7.0.8 Version - Its throwing error as Can not read Property 'TransitionDuration' of Undefined. HOT 1
- Angular 10 || 11 and Ionic 5: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s) error HOT 1
- Change tab programmatically. activeTabIndex not work.
- There isn't any props to disable ion-ripple-effect HOT 6
- Lazy loadingn not working - unloadWhenInvisible doing nothing HOT 2
- Tab content become empty when change tabs. Happens only on iOS 14.5 upwards
- super-tab-button animation slides from top on load
- Super Tabs - how to pass page to [root] correctly? HOT 1
- Having two supertabs pages, how to go from first page to second page programmatically?
- ion-refresher doesn't work in multiple tabs
- *ngIf and *ngOf directives not working
- not working on latest ionic v7.1.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-super-tabs.