21 lines
572 B
JavaScript
21 lines
572 B
JavaScript
|
scotchApp.service('commonService', function($rootScope) {
|
||
|
var sharedService = {};
|
||
|
sharedService.dv = '';
|
||
|
sharedService.urlPath = "";
|
||
|
|
||
|
sharedService.setUrlPath = function(urlPath){
|
||
|
//this.jobStepList = [];
|
||
|
this.urlPath = urlPath;
|
||
|
// $rootScope.$broadcast("hdlBroadcastReceivedDate",new Date().getTime());
|
||
|
};
|
||
|
|
||
|
sharedService.setDv = function(dv){
|
||
|
this.dv=dv;
|
||
|
//for(var i=0;i<lstData.length;i++){
|
||
|
// this.mstMsgList[lstData[i].key] = lstData[i].value;
|
||
|
//}
|
||
|
};
|
||
|
|
||
|
return sharedService;
|
||
|
|
||
|
});
|