For a list of items I want to show details after item click. Details will be loaded with ajax request. I have something similar to this: http://jsfiddle.net/asmKj/ How to modify this to work with details loaded dynamically?
For sure I have to prepare function in my controller like this:
$scope.getDetails = function (name) {
return $scope.details = myService.getDetails(name).then(function (details) {
return $scope.details = details;
});
}
But how to bind this data to details div?
detailsandshowDetailsare actually structured? and if it is possible to reorganize this structure... (if needed of course)