Bug description:
tabChange is not triggered when tab is changed
Link to minimally-working plunker that reproduces the issue:
template:
<ngb-tabset #wizardTabs="ngbTabset" (tabChange)="onTabChange($event)">
Component:
onTabChange($event: NgbTabChangeEvent) {
console.info('onTabChange=' + $event.activeId);
}
In component I change tabs with function:
goToTab(tabId: string) {
this.wizardTabs.select(tabId);
}
Version of Angular, ng-bootstrap, and Bootstrap:
Angular: 6.0.9
ng-bootstrap: 2.2.0
Bootstrap: 4.1.2
Seems to work perfectly fine for me here: https://stackblitz.com/edit/angular-swn2ra?file=app/tabset-preventchange.html
Please follow our issue template and provide a minimal reproduce scenario – otherwise it is not actionable and will be closed: https://github.com/ng-bootstrap/ng-bootstrap#you-think-youve-found-a-bug