【发布时间】:2017-03-02 12:30:47
【问题描述】:
地点是一个对象。 创建行程是指令。我在模板传递 create-itinerary 指令中打开 $ubiModal 并尝试传递一个对象位置。但是在指令中我得到了 [object object]。请帮助我。
$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"
});
};
【问题讨论】:
-
你使用 AngularUI 吗?
标签: angularjs