How to move to second tab on click of a button when using angularjs tab directive
问题 Hi I'm using angular tab directive.The link for JS fiddle is AngularJs Tab Directive .My Question is How can I move to second tab from first tab with click of a button?Thanks <tabs> <pane title="First Tab"> <button type="button" ng-click="moveToSecondTab()">Second Tab.</button> </pane> <pane title="Second Tab"> <div>This is the content of the second tab.</div> </pane> 回答1: Instead of hardcoding the panes in your HTML file, fetch it from your controller. Something like $scope.tabs = [ { title: