title: Disable hardware back button in Ionic application?
body: <p>I'm trying to disable the back button on my Cordova app.
  I'm using AngularJS + Ionic Framework.
  I found topics about this and tried the code bellow, but it has absolutely no effect. Any idea?</p>
  
  <p>index.html</p>
  
  <pre><code>&lt;head&gt;
      &lt;script&gt;
        document.addEventListener("deviceready", onDeviceReady, false);
          function onDeviceReady() {
              document.addEventListener("backbutton", function (e) {
                  e.preventDefault();
                  console.log("hello");
              }, false );
          }
      &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>Note that when I push back button, I have "hello" displayed in my console.</p>