i want to close the form after ajax. 
 normally we write a click event on the controller 
 like 

 $scope.submitForm = function () { 
       $http({
           ...
       }).success(function () {
             $scope.showForm = false; //we use a success callback to close 
the form 
       })
  }

  but now, i hope can direct write this use angular expression. 
  something like  : 
  ng-click="resource.$saveAsync(); showForm = false;"
  is it possible ? 
 




On Saturday, July 18, 2015 at 10:25:58 AM UTC+8, Sander Elias wrote:
>
> Hi Hengkeat,
>
> What is it you want to show you user after he is done with the form?
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to