tabs: ‘md-selected="selectedIndex"’. How to make selectedIndex a global variable, that can be operated in various tab controllers?
Actual Behavior:
What is the issue? *What is the expected behavior?
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:Details:
AngularJS Versions: *
AngularJS Version:AngularJS Material Version:
Additional Information:
Browser Type: *Browser Version: *OS: *Stack Traces:
Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions. Add more lines if needed.
I don't know how to control tab switching in other controllers

You could make your tab state a service, then inject the service into any controller you want to access or change the state from.
@tyrdavis how to do it? thx!
You can just make that a scope/controller variable.
md-selected="myVar" -> $scope.myVar = 2
how will it work with controller As syntax?
Thank you for taking the time to submit this issue. However there are better avenues for troubleshooting or asking for help with your app. These include Stack Overflow, Gitter, the AngularJS Material forums, etc.
Please limit GitHub issues to bug reports and enhancement requests.