Skip to content

Instantly share code, notes, and snippets.

@robwormald
Forked from heath/parentViewCtrl.coffee
Created December 1, 2013 05:11
Show Gist options
  • Save robwormald/7728744 to your computer and use it in GitHub Desktop.
Save robwormald/7728744 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