How do you get the selected tab from a bootstrap tabset in Angular4?
问题 I have a set of tabs that I create dynamically, dependent on my input data. And what I want to do is to be able to figure out which tab is currently selected. In the example code below, I have a tab control and beneath all this, I have a button that when clicked will delete the selected tab. I've tried to keep this relatively simple and it might seem contrived, but I hope it does to illustrate what I mean. Here's my code: <div class="col-md-12"> <ngb-tabset *ngIf="selectedInfo" type="groups"