This doesn't work. I get to the new view but no data is displayed. I wonder 
why this is so complicated...

        $scope.editContact = function(contactId){
            //switch views
            $location.path("/contactDetail/" + contactId);
            //retrieve contactId
            $scope.getContactDetails = function($routeParams){
                // retrieve index in contactList through contact's id
                $scope.contactIndex = 
retrieveItemIndex($scope.contacts,$routeParams.contactId);
            };
            $scope.contactIndex = 
retrieveItemIndex($scope.contacts,$routeParams.contactId);
        }

-- 
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/groups/opt_out.

Reply via email to