I use different “views” on the same component with angular directive *ngIf. I switch views with a ‘previous’ button which is always present on the html component. When I click on the previous button it just changes a boolean that hide a layout and displays another one.
So I want to handle the android back button, because it goes back to previous component, not previous user’s view. I can register the back button event with success but when I’m asking to change the boolean it doesn’t change the UI accordingly.
any ideas ?