Back button event not working when the modal dialog opened


I am using NativeScript with angular, when i opened the modal dialog after i press the back button, the modal dialog is closed after the back event method is firing. how to stop modal dialog closed when the back button press.


You would need to intercept the back button click event and check if the dialog is open then continue from there.