Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

mdTab mdActive attribute does not work #697

Closed
thebigredgeek opened this issue Nov 19, 2014 · 2 comments
Closed

mdTab mdActive attribute does not work #697

thebigredgeek opened this issue Nov 19, 2014 · 2 comments

Comments

@thebigredgeek
Copy link

mdActive attribute on mdTab directive doesn't appear to work. I have tried passing true, 'true', a property of the parent controller that is true, etc. No joy. It also appears that the mdSelected attribute on mdTabs doesn't always work.

You can see this failure at https://material.angularjs.org/#/demo/material.components.tabs on the bottom example. If you click the tabs on the example, the view doesn't change. If you change the selected index, the view changes.

Has anyone else experienced this?

@thebigredgeek
Copy link
Author

It looks like the wrong attribute is consumed. According the docs here:
https://material.angularjs.org/#/api/material.components.tabs/directive/mdTab
The mdActive attribute is used. However in the source code, we are checking the active attribute. Perhaps a doc update is needed?

@marcysutton
Copy link
Contributor

This is a duplicate of #699

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

No branches or pull requests

2 participants