material icon indicating copy to clipboard operation
material copied to clipboard

Few issues with tabs

Open gio82 opened this issue 11 years ago • 3 comments

I'm dealing with few issues with tabs.
Here below a brief description:

  • Removing a tab do not call md-on-select
  • Dynamically changing the tab label does not update the DOM
  • When async loading some tabs the ink bar does not update his length

Plus I think that you should add a method that allows to change tab via javascript.

gio82 avatar May 13 '15 09:05 gio82

@gio82 on the last note if you set md-selected="selectedIndex" on md-tabs you can change selectedIndex to switch between tabs.

I think the last bullet has to do with tabs not playing well with ng-if`s or dynamically adding/remove tabs see #2291

epelc avatar May 13 '15 13:05 epelc

Thanks for your help @epelc !

gio82 avatar May 13 '15 14:05 gio82

+1

/ med vänlig hälsning Patrik Nydensten

----- Reply message ----- From: "gio82" [email protected] To: "angular/material" [email protected] Subject: [material] Few issues with tabs (#2837) Date: Wed, May 13, 2015 11:01

I'm dealing with few issues with tabs.

Here below a brief description:

Removing a tab do not call md-on-select

Dynamically changing the tab label does not update the DOM When async loading some tabs the ink bar does not update his length

Plus I think that you should add a method that allows to change tab via javascript.

— Reply to this email directly or view it on GitHub.

patriknyd avatar May 13 '15 15:05 patriknyd