Как я могу направить к указанному шаблону ng-include - PullRequest
0 голосов
/ 04 июля 2019

В настоящее время я перенаправляюсь на другой контроллер, например, когда нажимается ссылка

creditchecklink

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 «Информация для выставления счетов» здесь

pill menu

организации 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 с другой страницы ...

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...