Skip to content

Instantly share code, notes, and snippets.

@andretw
Created December 15, 2013 07:57
Show Gist options
  • Save andretw/7970190 to your computer and use it in GitHub Desktop.
Save andretw/7970190 to your computer and use it in GitHub Desktop.
SomethingCtrl = ($scope, myService) ->
$scope.my_array = []
$scope.getList = () ->
# do something
$scope.my_array = myService.getItems() # return ['a'], ['a', 'b'] or ['a', 'b', 'c']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment