-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made AngularJS controllers minification-friendly. Closes #1
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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!'; | ||
|
||
}); | ||
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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!'; | ||
|
||
}); | ||
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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!'; | ||
|
||
}); | ||
}]); |