app = angular.module "myApp2", []
app.controller("myController", ($scope, $http, $q)->
init () -> console.log "hello coffee"
)
var app;
app = angular.module("myApp2", []);
app.controller("myController", function($scope, $http, $q) {
return init(function() {
return console.log("hello coffee");
});
});
var app = angular.module("myApp2", []);
app.controller("myController", function ($scope, $http, $q) {
function init() {
console.log("hello coffee");
}
});