Skip to content

Instantly share code, notes, and snippets.

@kylewelsby
Last active December 14, 2015 11:48
Show Gist options
  • Save kylewelsby/5081803 to your computer and use it in GitHub Desktop.
Save kylewelsby/5081803 to your computer and use it in GitHub Desktop.
app = angular.module('Simple')
@SimpleCtrl = ['$scope', ($scope) ->
$scope.data = {output: 'hello world'}
doSomething = () ->
$scope.data.output => "hello application."
]
###
var app;
app = angular.module('Simple');
this.SimpleCtrl = [
'$scope', function($scope) {
var doSomething;
$scope.data = {
output: 'hello world'
};
return doSomething = function() {
var _this = this;
return $scope.data.output(function() {
return "hello application.";
});
};
}
];
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment