В настоящее время я перенаправляюсь на другой контроллер, например, когда нажимается ссылка
creditcheck HTML:
<h3 class="modal-title" focus-me="true">Credit check regarding
<a ng-click="routeToSubOrg()">{{creditCheck.subOrganization.name}}</a>
</h3>
creditcheck 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>
Я не могу найти способ автоматически перенаправить на шаблон биллинга ng-include с другой страницы ...