Closed TheSharpieOne closed 9 years ago
You can now do something like:
var removeTaskUpdater = $sails.$modelUpdater('tasks', $scope.tasks); $scope.$on('destroy', removeTaskUpdater);
or in 1 line
$scope.$on('destroy', $sails.$modelUpdater('tasks', $scope.tasks));
to remove the modelUpdater listener.
You can now do something like:
or in 1 line
to remove the modelUpdater listener.