I am using ionic slides and I want to allow the user to slide only when clicking "next" or "back" and to be able to click "next" only when a radio option is selected. Otherwise, the "next" button to be disabled if there is no selection.
I managed to do this as below using the property radioButtonSelection;, but when I am going back because there is no new event on the page the property radioButtonSelection; doesn't take the value assigned previously and the slides are blocked. It shows is undefined thus the slides are blocked. However, if I go back I select an option, deselect and select again it's working because there is a new change and the property gets a new value. Any help would be amazing. Thanks a lot!
I am using ionic slides and I want to allow the user to slide only when clicking "next" or "back" and to be able to click "next" only when a radio option is selected. Otherwise, the "next" button to be disabled if there is no selection.
I managed to do this as below using the property radioButtonSelection;, but when I am going back because there is no new event on the page the property radioButtonSelection; doesn't take the value assigned previously and the slides are blocked. It shows is undefined thus the slides are blocked. However, if I go back I select an option, deselect and select again it's working because there is a new change and the property gets a new value. Any help would be amazing. Thanks a lot!
This is my HTML
This is my JS