0
我在工廠使用$ uibModal,我想鏈接解析但我得到post
提供程序錯誤。
return {
openTextEditModal: function(id) {
var modalInstance = $uibModal.open({
templateUrl: 'tpl.html',
backdrop: 'static',
controller: function($scope, $uibModalInstance, $sce, post, user, $http, $stateParams) {},
size: 'lg',
resolve: {
post: function() {
return $q.when('testing');
},
user:function(post){
//do stuff with post
return $q.when(userObj);
},
}
});
},
close:function(){
$uibModal.close();
}
};
如何在隨後的解決方案中使用已解決的值? (鏈接解析)。