For a route defined like this:
$routeProvider
.when('/',
{
templateUrl:'views/login.html',
controller:'Login',
private:false
});
How can I access the private
property inside a $routeChangeStart
event for example?
Currently I'm using current.$$route.private
to get it, but it seems wrong.
Thanks.
next.hideHeader
. It's odd because I console.loged
next` and it only showed as being a property on$$route
. – Wince