您好我正在使用角度選項卡指令。JS提琴的鏈接是 AngularJs Tab Directive。我的問題是如何移動到第二個選項卡從第一個選項卡一個按鈕,點擊?謝謝如何使用angularjs選項卡指令點擊按鈕時移動到第二個選項卡
<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>
給定的鏈接工作,你有什麼問題?創建一個精確的問題小提琴。 – 2014-12-05 08:54:17
是的,但是如果我在第一個標籤中有一個按鈕,並且我想導航到按鈕上的第二個標籤,請點擊。我可以如何實現這一點? – forgottofly 2014-12-05 09:01:19
嗨@ Aniket.Here是我的小提琴問題。我爲此添加了一個控制器。 [更新小提琴](http://jsfiddle.net/mailmrmanoj/1x8f5bp8/) – forgottofly 2014-12-05 09:27:26