Skip to content

Instantly share code, notes, and snippets.

@andrewconnell
Created September 9, 2015 13:04
Show Gist options
  • Select an option

  • Save andrewconnell/d6f02f23828f0646cc1f to your computer and use it in GitHub Desktop.

Select an option

Save andrewconnell/d6f02f23828f0646cc1f to your computer and use it in GitHub Desktop.
Draft Player Function
function draftPlayer() {
// save draft pick
dataService.saveDraftPick($routeParams.leagueId, vm.pick.player, vm.pick.nflTeam, vm.pick.fflTeam, vm.pick.position, vm.pick.auctionPrice)
.then(function () {
var data = {
player : vm.pick.player,
nflTeam: vm.pick.nflTeam,
position: vm.pick.position,
auctionPrice: vm.pick.auctionPrice
};
// log event to app insights
azAppInsightService.trackEvent('execute-draft-pick', $routeParams.leagueid, vm.pick.fflTeam, data);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment