Angular 1.x Module, service, directive boilerplate
(function () {
'use strict';
angular
.module('xtras')
.factory('modalPopupService', service);
service.$inject = [''];
function service() {
// public API
return {};
// implementation
}
})();