I am wondering how to toggle the sideNav and close the current dialog when 
click on a simple button in the dialog.I have tried use ng-click twice, but 
it doesn't work.

OR I think I could call toggleSideNav() function in the dialog-related 
controller(to be specific, in then part):
$scope.showAdvanced = function(ev) {
    $mdDialog.show({
      controller: DialogController,
      templateUrl: 'login.html',
      parent: angular.element(document.body),
      targetEvent: ev,
      clickOutsideToClose:true
    })
.then{XXXXX}
But I don't know how to use a function in another controller.

Thanks in advance for anyone's help!!!

-- 
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