Extremely simple requirement but having a hard time with this. Have simple page where I print the parameter in the url path.
http://localhost:8888/ngtest.html#/1234567
ngtest.html
<div ng-app="app" ng-controller="testCtrl">
{{myId}}
</div>
<script>
var app = angular.module('app', []);
app.controller('testCtrl', function($scope, $location) {
$scope.myId = $location.$$path;
});
</script>
In the browser window:
- change
1234567
to something like1234
- hit Enter
Nothing happens. Hit F5 and it works as expected.
Not sure if this has something to do with browser behavior but how to force the page to refresh after parameter change + Enter?