我正在使用模态显示一系列选项卡
<div class="modal fade hide modal-creator" data-backdrop="static" modal="imageUploader" tabindex="-1" data-focus-on="input:first">
<div class="modal-header">
<h3>Create New Gallery</h3>
</div>
<div class="modal-body" id="imageUploader_sort">
<tabset>
<tab ng-repeat="tab in tabs" active="tab.active" heading="{{tab.title}}" disabled="tab.disabled" select="tabName(tab.title)">
<div ng-include="tab.content"></div>
</tab>
</tabs>
</div><!-- /modal-body -->
<div class="modal-footer">
<button ng-click="close()" class="btn" >Close</button>
<button ng-click="next()" class="btn" >Next</button>
</div>
控制器
$scope.tabs = [
{ title:"Home", content:"/beta/application/views/images/uploader/create.html", active: true },
{ title:"Upload", content:"/beta/application/views/images/uploader/upload.html"},
{ title:"Edit", content:"/beta/application/views/images/uploader/edit.html"}
];
$scope.next = function()
{
console.log($scope.tabs);
};
我正在寻找一个解决方案来使用下一步按钮浏览选项卡,当我到达最后一页时,将按钮变成完成按钮。对此有很大帮助的任何指导谢谢