I am running into a problem with the modal service from Angular-ui-bootstrap. I have set up the modal according to the example on : http://angular-ui.github.io/bootstrap/ b
What does the console.log()
inside $scope.ok
show? If it does indeed show the correct value, I would suggest wrapping your schedule data inside an object, to avoid any scope related issues:
$scope.schedule = { data: '' };
Then inside your modal view:
And your output:
$modalInstance.close($scope.schedule.data);