我想将内容从ui-router加载到tab但是没有发生我通过状态中的指定控制器为每个选项卡呈现数据。我无法在标签中看到任何数据,任何想法在下面的代码中实现了什么错误?
main.html中
SELECT `function`,`destination`
FROM reroute
WHERE `group` = '${ARG2}'
AND `name` = 0
AND '${ARG1}' LIKE concat(`match`,'%')
ORDER BY length(`match`) DESC LIMIT 1
app.js
<div ng-controller="MainCtrl">
<uib-tabset active="active">
<uib-tab ng-repeat="tab in tabs" heading="{{tab.heading}}" active="tab.active" disable="tab.disabled">
<div>{{tab.route}}></div>
</uib-tab>
</uib-tabset>
</div>
MainCtrl.js
$stateProvider
.state('app', {
abstract: true,
url: '',
templateUrl: 'web/global/main.html',
controller: 'MainCtrl'
})
.state('app.dit', {
url: '/dit',
templateUrl: 'view/partials/dit.html',
controller: 'DitCtrl'
})
.state('app.st', {
url: '/st',
templateUrl: 'view/partials/st.html',
controller: 'StCtrl'
})
.state('app.uat', {
url: '/uat',
templateUrl: 'view/partials/uat.html',
controller: 'UatCtrl'
})