Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ionic Route to page on item pressed #24

Open
tharrington opened this issue Jul 2, 2018 · 2 comments
Open

Ionic Route to page on item pressed #24

tharrington opened this issue Jul 2, 2018 · 2 comments

Comments

@tharrington
Copy link

tharrington commented Jul 2, 2018

I have a tabs component which is listening to the onItemPressed:

ionViewDidLoad() {
    this.plt.ready().then(() => {


      this.indexAppContent.onItemPressed().subscribe((payload: any) => {
        console.log('from TABS when a item is pressed'); 
        console.log('### payload: ' + JSON.stringify(payload)); 
        this.tabRef.select(2);
        
      });      
    });
  }

When I perform a spotlight search, I see the desired item and the log messages appear... However, I cannot change tabs from this context. Also, there is no error being thrown. How can I route to the desired page?

@MarcoEidinger
Copy link
Collaborator

@NiklasMerz do you have by any chance some insight here? I don't know much about ionic...

@NiklasMerz
Copy link
Contributor

I could try to help.

@tharrington What version of Ionic are you using? I don't know how tabs worked before but in Ionic v4 I would change tabs via their URL and Angular router.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants