HI Ocajian,
Ah, I see what your issue is. When your controller is initialized, you are putting in $scope.parameters = $routeParams;. As $routeParams is an object this will be assigned per reference binding. If any of the properties of $routeParams will change, this will get reflected in $scope.parameters However, on init, $routeParams.countryName will be undefined. (it is not there yet). So, you assign undefined to $scope.parametersCountr. Undefined is a primitive, and will get assigned per value. That’s why your seemingly impossible ting happens. $routeParams will receive its properties in after the controller gets initialized. Does that explain it enough for you? Regards Sander -- 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.
