JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.angularjs.org/angular-1.0.0rc10.js"></script>
<div ng-app ng-controller="TestCtrl">
<button ng-click="$location.path('hello')">Change</button>
<p>{{path}}</p>
</div>
JavaScript
function TestCtrl($scope, $location){
$scope.$watch("$location.path()", function(newval){
$scope.path = newval
})
}