Between Lines we place dynamic view (ng-view):
This Part is static. We show here only some variables dynamically
We have injected in our controller the services: $route, $routeParams, $location
and assigned them to
the $scope, with the same names. So we can use them here:
$location
.path() = {{$location.path()}} href='#{{$location.path()}}'
$route
.current.templateUrl = {{$route.current.templateUrl}}
$routeProvider.when('...', {templateUrl : {{$route.current.templateUrl}},
$route
.current.params = {{$route.current.params}}
$scope.params = $routeParams; - defined in both controllers.
$route
.current.scope.controllerMessage = {{$route.current.scope.controllerMessage}}
$routeParams
= {{$routeParams}}