title: Sapui5 navTo not working in ajax statement
body: <p>I have a form in my page. When a user clicks a button if have no problem this code must navigate my <code>Tile</code> page. I am taking this problem:<code>Uncaught TypeError: Cannot read property 'navTo' of undefined</code>. </p>
  
  <p>This my code:</p>
  
  <pre><code> onPressGonder: function (evt) {
    var sURL = "xxxxxx";
    $.ajax({  
      url: sURL,  
      dataType: "json",
      success: function(data) {
        if (data.ResultCode === 7) {
          sap.m.MessageToast.show("Error:" +data.Alerts[0].Message+"") ; 
        } else {
          sap.m.MessageToast.show("Login succesfull.");
          sap.ui.core.UIComponent.getRouterFor(this).navTo("Tile");
        }   
      }
    }); 
  }  
  </code></pre>