InfomediaLtd/angular2-materialize

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

Opened this issue · 1 comments

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?

See my pull request
#411

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