I have a /admin
URI and inside this there are 3 sub tabs
<ngb-tabset class="col-lg-12" type="pills" class="customTab">
<ngb-tab id="tab-lsp3">
<ng-template ngbTabTitle>Model Tracker</ng-template>
<ng-template ngbTabContent>
<app-modeltracker></app-modeltracker>
</ng-template>
</ngb-tab>
<!-- **** MAIN TAB4 **** -->
<ngb-tab id="tab-lsp4">
<ng-template ngbTabTitle>Class Label</ng-template>
<ng-template ngbTabContent>
<app-classlabel></app-classlabel>
</ng-template>
</ngb-tab>
</ngb-tabset>
2 sub tab's contents are being pulled from different components and on switch between these 2 sub tabs, a password prompt page or pop up should appear and show the content of respective tabs only if the password is correct.\
How can this be achieved using Angular life cycle hooks?.