Skip to content

Instantly share code, notes, and snippets.

@heath
Last active December 29, 2015 21:09
Show Gist options
  • Save heath/7728699 to your computer and use it in GitHub Desktop.
Save heath/7728699 to your computer and use it in GitHub Desktop.
class ParentViewCtrl
@$inject: ['$scope', '$location']
constructor: (@scope, @location) ->
@scope.fun_times = @fun_times
@scope.some_ojects = @some_objects
fun_times: =>
console.log "something something"
some_objects: [
"id" : 1
"name" : "foo"
,
"id" : 2
"name" : "bar"
,
"id" : 3
"name" : "baz"
]
angular.module('app').controller 'ParentViewCtrl', ParentViewCtrl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment