So I have some code like this:
if(result.data.authenticated === false) {
//need to send to unauthoirzed page.
$location.path('/unauthorized');
}
and when it hits I see my url change to:
/#/unauthorized
but it's not displaying my HTML page that I have defined here:
.when('/unauthorized', {
templateUrl:'partials/unauthorized.html',
controller:'unauthorizedController'
})
just stays on the original page.