I am trying to use $ ionicPopup to handle login / registration in my application. I open it from the service, so I created a new scope and bound it to ionicPopup. It looks like this:
$ionicPopup.show template: ''' <form name="loginForm" novalidate> ... </form> ''', scope: $scope, buttons: [ { text: 'Cancel', }, { text: '<b>Save</b>', type: 'button-positive', onTap: ( e ) -> form = $scope.loginForm
So, I called the loginForm form, and I want to access it inside the onTap function to handle validation. But loginForm does not exist in $ scope, as it would be with the usual form validation inside the controller. So, do you have any ideas on how I should handle validation here?
Thanks!
source share