当前,我会路由到另一个控制器,例如单击链接时
信用检查HTML:
<h3 class="modal-title" focus-me="true">Credit check regarding
<a ng-click="routeToSubOrg()">{{creditCheck.subOrganization.name}}</a>
</h3>
信用检查JS:
$scope.routeToSubOrg = function(){ const pathToSubOrg = "/recruitment/organization/"+$scope.creditCheck.subOrganization.organizationId;
if($location.$$path !== pathToSubOrg)
{
$uibModalInstance.dismiss('close');
$location.path(pathToSubOrg);
}
}
我路由到有效的特定html路由,但是我需要路由至此处的特定uib标签“计费信息”
组织HTML:
<uib-tabset type="pills header-menu">
<uib-tab heading="General info" index="0">
<div ng-include="'templates/organizations/organizations.generalinfo.html'" ng-controller="OrganizationsGeneralinfoController"> </div>
</uib-tab>
<uib-tab heading="Billing Information" ng-if="organization.id > 0" index="4">
<div ng-include="'templates/suborganizations/organizations.suborganizations.html'" ng-controller="SubOrganizationsController"></div>
</uib-tab>
</uib-tabset>
我找不到从另一页面自动路由到billinginformation ng-include模板的方法...