place is a object. create-itinerary is directive . I open $ubiModal within a template pass create-itinerary directive and try to pass an object place.But in directive i got [object object].please help me.
$scope.showCreateItinerary = function(place) {
var tpl = '<div create-itinerary trip-details="\'' + place + '\'"></div>';
$uibModal.open({
animation: true,
ariaLabelledBy: 'modal-title',
ariaDescribedBy: 'modal-body',
template: tpl,
controller: 'ModalCtrl',
size: 'lg',
backdrop: 'static',
windowClass: "signup-popup abc"
});
};