Hi All,

I am using $location.path to route to load different view. But in android 
native browser, it doesn't update the url in browser. 

On click of a button,below function gets executed:

$scope.submit = function() {
      var path = '/search/' + $scope.title;
      $location.path(path);
};

This works fine in all browser. But Android 4.0.3 native browser, it works 
and load new view. But didnt update the url in the browser address bar.

Instead I use below logic:

$scope.submit = function() {
      var path = '#/search/' + $scope.title;
//      $location.path(path);
       window.location = path;
       $route.reload();
};

This works as expected. But on lower devices, android 2.2, its generating 
"angular 10 watch error".

Can anybody please help me to resolve this?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to