You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to figure out the proper way to use the on-selection-changed event of the win-pivot control. My use case is every time a pivot item is selected, I would like the on-selection-changed event to be triggered so I can execute some angular code.
In the below example, the changePivotView() function is triggered during initialization of the page and when a user clicks on a different pivot item. However, the $scope variables "selectedPivotItem" and "selectedPivotIndex" are never updated with the pivot item that is selected (the console.log always displays "null" and "2" respectively).
Hi,
I am trying to figure out the proper way to use the on-selection-changed event of the win-pivot control. My use case is every time a pivot item is selected, I would like the on-selection-changed event to be triggered so I can execute some angular code.
In the below example, the changePivotView() function is triggered during initialization of the page and when a user clicks on a different pivot item. However, the $scope variables "selectedPivotItem" and "selectedPivotIndex" are never updated with the pivot item that is selected (the console.log always displays "null" and "2" respectively).
Any guidance?
This is the HTML code:
This is my angular code:
Thanks,
J-F
The text was updated successfully, but these errors were encountered: