According to the docs, $route.current
contains controller
and locals
.
For example, if this is one of my route:
$routeProvider
.when('/item1/:value', {
templateUrl: 'item1.html',
controller: 'Item1Controller',
title: 'Item 1'
});
{{$route.current}}
prints out {"params":{"value":"value1"},"pathParams":{"value":"value1"},"loadedTemplateUrl":"item1.html","locals":{"$template":"<p>item 1:{{params}}</p>","$scope":"$SCOPE"},"scope":"$SCOPE"}
Why isn't there
controller
?{{$route.current.title}}
prints out "Item 1." But above there isn't propertytitle
?
What exactly does $route.current
contain?