Consider I have same method as below in multiple controllers,
$scope.onDraft = function () {
$scope.draft = true;
$scope.saveOnDraft();
};
and hence saveOnDraft() method has to be defined multiple times in those controllers.
This is creating code duplication, Is there any why where i can make these methods (OnDraft() & saveOnDraft()) common, I can not use service and factory because it will not update my scope object from it.
Any help would be much appreciated.