How to disable browser back button in AngularJS?
<p><img src="https://i.stack.imgur.com/pSUm5.png" alt="enter image description here"></p>

<p><img src="https://i.stack.imgur.com/3wXXv.png" alt="enter image description here"></p>

<p>i want disable browser back button and refresh button. in angular </p>

<p>example my source</p>

<p>page source : </p>

<pre><code>"use strict";

.controller("wizardSecondController", function($scope, $state, $stateParams, wizardManager) {

$scope.$on("$viewContentLoaded", function(event, data) {
});
</code></pre>

<p>i want prevent browser back and refresh  .
please answer .</p>