AIA.service('ModuleService', function () { this.SaveOpenedModules = function () { return { true; // alert('called service'); } }; });