material icon indicating copy to clipboard operation
material copied to clipboard

mdTabs inside ng-repeat not working properly

Open EladBezalel opened this issue 11 years ago • 13 comments

Well i tried to put some tabs inside ng-repeat, i tried many combinations and finally understood this is a bug. I can't point where the problem occurs but here's an example of whats happening.

thanks ahead :)

EladBezalel avatar Jan 04 '15 23:01 EladBezalel

@EladBezalel - You should not put Tabs inside a ng-repeat. That is not a Material aesthetic. Tabs are primary navigation or content controls. With that said, this still sounds like a bug.

ThomasBurleson avatar Jan 06 '15 16:01 ThomasBurleson

I do agree with you @ThomasBurleson , but in my situation I have expanding items (#1100 in the plunkr) and inside them I want to use tabs because in mobile the item expands to full-screen and the tabs are used as primary navigation there.

EladBezalel avatar Jan 06 '15 16:01 EladBezalel

It's worth mentioning that that the angular material documentation (the demo for tabs) uses an example with ng-repeat. If this is not meant to be the case, this example should be removed.

cgat avatar Feb 04 '15 03:02 cgat

@cgat - you missed the point. Tabs can be used in repeaters. Tabs should not be nested within Tabs

ThomasBurleson avatar Feb 04 '15 04:02 ThomasBurleson

@ThomasBurleson Ahh, yes. Sorry for the confusion

cgat avatar Feb 04 '15 06:02 cgat

The tabs is not nested within tabs, it's nested in a repeater, I want tabs for each item in the list.. Is this fixed?

EladBezalel avatar Feb 04 '15 07:02 EladBezalel

@EladBezalel - no this has not yet been resolved. Currently we only support using <md-tab>with a ng-repeat (not <md-tabs>).

ThomasBurleson avatar Feb 04 '15 13:02 ThomasBurleson

Thanks for reopen

EladBezalel avatar Feb 04 '15 13:02 EladBezalel

+1

ratscrew avatar Feb 11 '15 04:02 ratscrew

+1

jlubin1 avatar Feb 11 '15 04:02 jlubin1

+1

verdverm avatar Mar 08 '15 07:03 verdverm

Hey guys, what's up with this issue? Just spent a few hours to figure out that the problem is not in me :) Is it resolved, or what? (as I see ready label has been removed?)

fourpixels avatar Mar 31 '15 09:03 fourpixels

This is resolved in master, and will be in the 0.9.0 release

robertmesserle avatar Apr 01 '15 21:04 robertmesserle