When a user submits a form on my site, I want to redirect them to the next state in my application using Angular UI Router so the user can't hit their back button to go back or refresh button to resubmit the form. But I don't want to do a page refresh.
I've tried these but didn't work:
$location.path('/myPath').replace(); $state.transitionTo('about', {}, { location: 'replace' }); How can I redirect users to another state in AngularJS with the Angular UI Router?
modelafter submission, it will prevent duplicate entry