(function(){ "use strict"; angular.module("raz") .service("lcmObjectiveStandardsService", ["skillObjectiveStandardsMap", function (skillObjectiveStandardsMap) { function getObjectiveStandardsCodes(coreSkillObjectiveMapId, stateId) { var standardCodes = ""; _.each(skillObjectiveStandardsMap[coreSkillObjectiveMapId][stateId], function (standard) { standardCodes += standard.standard_code + ", "; }); return standardCodes.substr(0, standardCodes.length - 2); } function getObjectiveStandards(coreSkillObjectiveMapId, stateId) { return skillObjectiveStandardsMap[coreSkillObjectiveMapId][stateId]; } return { getObjectiveStandardsCodes: getObjectiveStandardsCodes, getObjectiveStandards: getObjectiveStandards }; }]); })();