I am working with AngularMaterial specifically with $mdDialog
when I enter the dialog my controller works, now what I need is to be able to run the controller without opening the view of the dialog.
this is the function that contains the mdDialog
vm.showAdvanced = function (ev, rowEmployee) {
$mdDialog.show({
controller: DialogController,
templateUrl: 'dialog-liqui.tmpl.html',
parent: angular.element(document.body),
targetEvent: ev,
clickOutsideToClose: true,
fullscreen: true,
locals: {
employee: employee
}
};
How can I run the controller and pass it on the locals data?