From 933374504152d29fefd4d15e3fec5a1c4ac54d1d Mon Sep 17 00:00:00 2001 From: Zemke Date: Thu, 18 Dec 2014 10:09:51 +0100 Subject: [PATCH] Made AngularJS controllers minification-friendly. Closes #1 --- public/js/controllers/GeekCtrl.js | 4 ++-- public/js/controllers/MainCtrl.js | 4 ++-- public/js/controllers/NerdCtrl.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/js/controllers/GeekCtrl.js b/public/js/controllers/GeekCtrl.js index 559220a..e684329 100644 --- a/public/js/controllers/GeekCtrl.js +++ b/public/js/controllers/GeekCtrl.js @@ -1,5 +1,5 @@ -angular.module('GeekCtrl', []).controller('GeekController', function($scope) { +angular.module('GeekCtrl', []).controller('GeekController', ['$scope', function($scope) { $scope.tagline = 'The square root of life is pi!'; -}); \ No newline at end of file +}]); \ No newline at end of file diff --git a/public/js/controllers/MainCtrl.js b/public/js/controllers/MainCtrl.js index 1f9862d..0737632 100644 --- a/public/js/controllers/MainCtrl.js +++ b/public/js/controllers/MainCtrl.js @@ -1,5 +1,5 @@ -angular.module('MainCtrl', []).controller('MainController', function($scope) { +angular.module('MainCtrl', []).controller('MainController', ['$scope', function($scope) { $scope.tagline = 'To the moon and back!'; -}); \ No newline at end of file +}]); \ No newline at end of file diff --git a/public/js/controllers/NerdCtrl.js b/public/js/controllers/NerdCtrl.js index f361522..d38de47 100644 --- a/public/js/controllers/NerdCtrl.js +++ b/public/js/controllers/NerdCtrl.js @@ -1,5 +1,5 @@ -angular.module('NerdCtrl', []).controller('NerdController', function($scope) { +angular.module('NerdCtrl', []).controller('NerdController', ['$scope', function($scope) { $scope.tagline = 'Nothing beats a pocket protector!'; -}); \ No newline at end of file +}]); \ No newline at end of file