angular-ui-switch icon indicating copy to clipboard operation
angular-ui-switch copied to clipboard

Ng-Change not Working inside Angular-UI-Grid

Open mriso79 opened this issue 8 years ago • 1 comments

Hi Guys, I'm using it inside angular-ui-grid but the ng-change event never fires ... Any clue ? Regards!

mriso79 avatar Mar 07 '17 17:03 mriso79

Hi !!! Just figured out. For those with the same problem:

You have a function: $scope.showMe = function(){ alert('some');}

So your NG-CHANGE in your Ui-Switch must be: ng-change="grid.appScope.showMe()"

as per https://github.com/angular-ui/ui-grid/issues/184

mriso79 avatar Mar 07 '17 18:03 mriso79