Повторное использование • SRP (SOLID) • Внедрение через DI var myApp = angular.module('MyApp', []); myApp.factory('fileService', function() { var factory = {}; factory.sendFiles = function(files, url) { // ... }; return factory; }); myApp.controller('MyCtrl', function($scope, fileService) { var files = ...; fileService.sendFiles(files, url); });