A better way to define controllers
angular.module('myApp').controller('fooCtrl', foo); function foo () { "use strict"; var ctrl = {}; ctrl = { foo: null, asdf: [], yada: {}, bar: bar, kung: kung, fu: fu }; init(); return ctrl; function init() { ctrl.foo = "hello"; ctrl.asfd = [1,2,3]; someService.get().then(function(response) { ct...