Created
February 16, 2015 19:50
-
-
Save ewahner/732ba7815befed5defee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
angular.module('ConnectionHistoryServices', ['ngResource']) | |
.service('shared', function($rootScope) { | |
var aggId = 0, | |
activeTab = 1, | |
broadcastChanges = function() { | |
$rootScope.$broadcast('SharedChange'); | |
}; | |
return { | |
AggId: aggId, | |
ActiveTab: activeTab, | |
BroadcastChanges: broadcastChanges | |
}; | |
}) | |
.factory('services', function($resource) { | |
return $resource('/api/ConnectionHistory/:action', { action: '@action' }, | |
{ | |
aggList: { method:'GET', isArray: false}, | |
detailList: { method: 'GET', params: { aggid: 'aggid', page: 'page', pageSize: 'pageSize'}, isArray: false }, | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment