24
rated 0 times
[
27]
[
3]
/ answers: 1 / hits: 29532
/ 8 Years ago, mon, july 11, 2016, 12:00:00
I'm trying to figure out how to pass unit_number
into the modal when it pops up. I'm pretty new with Angular and I'm a little confused with what resolve:
and group:
are doing and how I can include the unit_number in that return statement.
$scope.openTenantModal = function (unit_number) {
var modalInstance = $uibModal.open({
animation: true,
templateUrl: 'views/addtenantmodal.html',
controller: 'AddTenantModalCtrl',
size: 'large',
resolve: {
group: function () {
return $scope.group;
}
}
});
modalInstance.result.then(function () {
}, function () {
});
};
More From » angularjs