I have a use case in which I need to clear the navigation history using angular router (so that hardware back button press does nnot take me to the previous page but homepage). I have been looking around for a straightforward solution for this but haven't found any. I have suggestions of using nativescript but I don't want to increase my bundle-size for this requirement. Please advise if there is any inbuilt angular functionality I can use?