title: Prevent backspace from navigating back in AngularJS
body: <p>I faced this issue in my AngularJS webapp.</p>
  
  <p>When a user enters a page with a form to fill and he starts typing, if he presses the backspace key and the focus is not on the input text, then the page goes to the previous state.</p>
  
  <p>I looked up <a href="https://stackoverflow.com/questions/1495219/how-can-i-prevent-the-backspace-key-from-navigating-back">this solution</a> using jQuery, but it doesn't seem the appropiate way for achieve this in AngularJS.</p>