You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[v4-beta.18] Property 'select' does not exist on type 'IonTabs'. #16753
Current behavior:
When I try to call the select method in the IonTabs, the following error is shown: Property 'select' does not exist on type 'IonTabs'.
Expected behavior:
The method must select the tab that is in the param.
Steps to reproduce:
Try to call the select method from a tab reference.
in our case we like to minimise the upgrades efforts in the future so we always merge the latest releases and adapt. Except for this one is breaking our app, and we are going to production soon.
You don't need to use "select" because you can just use the normal router navigation from Angular :)
That's you assuming that we are using the angular router navigation... since its was so buggy from the early beta version with lazyloading, ion-tabs, back() etc...
we tried it at first but things didnt progress fast enough so we switched to the old system and we cant turn back now. Not for this release anyways.
Thanks anyways ;)
@hghammoud This was just an idea for a workaround ;) You problem is already fixed by #16770 - so just wait for the next beta or fork the repo and create the newest version yourself :)
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
paulstelzer commentedon Dec 15, 2018
Thanks for your issue! You are right the select method is not available.
At first I thought your issue is because you are using ViewChild and want to get access inside ngOnInit (Viewchild is available before AfterViewInit - https://angular.io/api/core/ViewChild ).
But this isn't the case and so thanks for finding this issue!
@manucorporat Inside the docs there are three methods for ion-tabs ( https://github.com/ionic-team/ionic/tree/master/core/src/components/tabs ), but these are not available. See the following screenshots:
And no, it's not an issue of the interface:
hghammoud commentedon Dec 16, 2018
Can you please prioritise this issue?
in our case we like to minimise the upgrades efforts in the future so we always merge the latest releases and adapt. Except for this one is breaking our app, and we are going to production soon.
Thanks
paulstelzer commentedon Dec 16, 2018
You don't need to use "select" because you can just use the normal router navigation from Angular :)
feat(angular): tabs.select()
feat(angular): tabs.select()
hghammoud commentedon Dec 17, 2018
That's you assuming that we are using the angular router navigation... since its was so buggy from the early beta version with lazyloading, ion-tabs, back() etc...
we tried it at first but things didnt progress fast enough so we switched to the old system and we cant turn back now. Not for this release anyways.
Thanks anyways ;)
paulstelzer commentedon Dec 17, 2018
@hghammoud This was just an idea for a workaround ;) You problem is already fixed by #16770 - so just wait for the next beta or fork the repo and create the newest version yourself :)
davidecheli commentedon Dec 17, 2018
Thanks for developing the solution so fast. I will comment the select() method 'till next beta.
ionitron-bot commentedon Jan 16, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.