first commit

This commit is contained in:
didier amyot committed 2014-12-27 17:27:21 -08:00
commit 823ecdd500
26 files changed
+2110

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
define [], ->
[
"$scope"
"$http"
($scope, $http) ->
# You can access the scope of the controller from here
$scope.welcomeMessage = "hey this is myctrl1.coffee!"
$scope.okay = "okay?"
# because this has happened asynchroneusly we've missed
# Angular's initial call to $apply after the controller has been loaded
# hence we need to explicityly call it at the end of our Controller constructor
$scope.$apply()
]