Modal backgrop


Hello! I have a login form in a modal window. Is there a way to prevent it from closing (well any modal) when clicking on the backdrop? I noticed that there’s an option “backdropClickToClose” but it doesn’t work:


			if (authRequired == true){
				console.log("Loading Modal...",$ionicModal);
					$ionicModal.fromTemplateUrl('views/login.html', function(modal) {
					$scope.loginLoaded = true;
					$scope.modal = modal;
						    scope: $scope,
						    animation: 'slide-in-up',
						    focusFirstInput: 'true',
						    backdropClickToClose: 'false'  // doesn't work
				console.log("Login Page Loaded");


See here

    $ionicModal.fromTemplateUrl('modal.html', {
    scope: $scope,
    backdropClickToClose: false

    }).then(function(modal) {
    $scope.modal = modal;


Great! Thanks, this is very helpful!!


work’s great , thanks