Skip to content

Instantly share code, notes, and snippets.

@LBRapid
Created May 28, 2013 19:42
Show Gist options
  • Save LBRapid/5665514 to your computer and use it in GitHub Desktop.
Save LBRapid/5665514 to your computer and use it in GitHub Desktop.
init = ->
$scope.pageTitle = "Edit Registration"
$scope.registration = {}
Registration.get({ id: $routeParams.id }).then (result) ->
$scope.registration = result
setKeys($scope.registration)
setKeys = (registration) ->
Registration.availableKeys().then (result) ->
$scope.availableKeys = result
console.log("Set keys")
console.log(registration.keys)
$('#keys').val(registration.keys)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment