I open a modal with the following code:
$scope.openModal = function() {
$ionicModal.fromTemplateUrl('modal.html', function(modal) {
$scope.modal = modal;
$scope.modal.show();
}, {
scope: $scope,
animation: 'slide-in-up'
});
}
And, in my modal, I bind a textarea to ng-model="reply"
. However, when clicking the “send” button (sending an e-mail), reply
doesn’t seem to be anywhere on my $scope
. Where are things actually binding to when the modal is open?