Hi Everyone

I set up my routing as follows:

.when('/:countryName/:categoryName', {
    templateUrl: 'views/about.html'
  })


Problem is, I am having trouble pulling the values from my $routeParams 
object

For example when I do this:

$scope.parameters = $routeParams;

$scope.parameters equals the following object 
{"countryName":"Japan","categoryName":"Football"}


However if I try assign the following:

$scope.parameters = $routeParams.countryName; 

$scope.parameters is undefined

Why is this? What am I doing wrong? I have read the documentation and can't 
for the life of me see what I am doing differently to the documentation.


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to