refactor($resource): fix indentation and move a method definition
refactor($resource): fix indentation and move a method definition

Moved Resource.bind out of the actions forEach

ammula88/angular.js,ammula88/angular.js,ammula88/angular.js,ammula88/angular.js,ammula88/angular.js