Skip to content

Instantly share code, notes, and snippets.

@LBRapid
Created May 28, 2013 19:43
Show Gist options
  • Select an option

  • Save LBRapid/5665519 to your computer and use it in GitHub Desktop.

Select an option

Save LBRapid/5665519 to your computer and use it in GitHub Desktop.
init = ->
$scope.pageTitle = "Edit 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