Angular Js $ Not Working In .success For Mobile Browser

I'm working with Angularjs and I got a problem. The function $ works perfect on pc browsers and mobile browser. But there's 1 case it doesn't work. Please help to look below:

 $"");  // OUTSIDE OF REQUEST - no problems 

    type: "GET",
    url: "backendURL",
    data: jsonData,
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function(msg) {
        $"");  //This doesn't work. 
    error: function(msg) {

Note that this is just happen with mobile browser : chrome and safari (I didn't test for others) So I think maybe someone has experience with this. Please please please help and advise.

Thanks ...



I found this solution online, hope it will help you. do var win =; before the callback function, then inside .success, change url by doing win.location = url;. This should do the trick.