Reputation: 1
html -
<nb-stepper orientation="horizontal" [selectedIndex]="5"> <nb-step *ngFor="let w of weeks" [label]="w" [completed]="false" (click)="doSomthing($event)">
Upvotes: 0
Views: 748
Reputation: 11
<nb-stepper #stepper [linear]="linearMode" (click)="stepClick($event)"> ...
Then in component: @ViewChild('stepper') stepperComponent: NbStepperComponent; and in the stepClick function, I have access to the stepperComponent.
https://github.com/akveo/nebular/issues/1308
Upvotes: 1