I am angular newbie.I would like to achieve following code...
$routeProvider.when('/view', {templateUrl: 'ViewSwitcher?pageId='+$rootSope.pageId+'&userId='+$rootSope..userId+'&token='+$rootScope.token, controller: ''});
ViewSwitcher is a servelet which responses me a HTML page as per pageId,userId(saved in $rootScope) ......but $rootScope is not available....Thanks in advance!