Thank you Sanders!

In fact the issue was the event name. i.e it should like below:

 <ngb-tabset (tabChange)="getStudentGrades()">

And I was trying with (change), (click) etc..

Anil

On Wednesday, January 11, 2017 at 8:43:55 PM UTC-8, Sander Elias wrote:
>
> Hi Anil,
>
>
> Did you define "callMyFunction" on the ngb-tab-title components 
> controller? If not, the click is probably handled by the ngb tabs system.
> you can add your own clickhandler inside a ngbTabTitle template like this:
>
> <ngb-tabset>
>     <template ngbTabTitle> <span (click)="callMyFunction()">Profile
> </span></template> 
> <ngb-tabset>
>
> As documented in the excellent ngBootstrap documentation! 
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to