Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Can't change tab in tabs in Angular code (not triggering) #399

Open
austrolex opened this issue Dec 24, 2017 · 1 comment
Open

Can't change tab in tabs in Angular code (not triggering) #399

austrolex opened this issue Dec 24, 2017 · 1 comment

Comments

@austrolex
Copy link

austrolex commented Dec 24, 2017

I am trying to change tabs in my Angular code by reacting to a click event on an icon. However it doesn't work....

changeTab() {
    this.tabAction.emit({action: 'tabs', params: ['select_tab', 'test3']});
  }

From MaterializeCSS docs:
$(document).ready(function(){ $('ul.tabs').tabs('select_tab', 'tab_id'); });

What am I doing wrong or is this even possible?

@austrolex austrolex changed the title How to change tabs? How to change tabs in Angular code? Dec 24, 2017
@austrolex austrolex changed the title How to change tabs in Angular code? Can't change tab in tabs in Angular code (not triggering) Dec 24, 2017
@Dakayl
Copy link

Dakayl commented Feb 14, 2018

See my pull request
#411

With it, your action works. I was having the same problem.

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

No branches or pull requests

2 participants