MikiSoft MikiSoft - 4 months ago 16
AngularJS Question

UI Bootstrap: Execute specific function before tab changes

As in the title writes, is it possible to intercept tab change event and execute some function before that occurs?

Answer

Yes you can, just add an ng-click on the uib-tab directive

Here's a demo plunker (note how the code runs before the view changes).