Open LuisMCunha opened 8 years ago
I guess you can only get the index
of the current slide/tab. Just add active-slide="slides.active"
attribute in ion-slide-box
tag then you will get the index
by using $scope.slides.active
in your controller.
Hope this helps.
I ended up using this
$scope.slideChanged = function (index) {
switch (index) {
case n:
//do something
}
};
As I need to do something different depending on which tab is selected, which is very similar to your suggestion. Thanks.
Hi,
I'm trying to do something similar to ng-click when the user selects a specific tab, but setting ng-click on the ion-slide element binds the event to the content and not the tab element itself. How would I be able to detect when a single tab is selected?