Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix(ngMessages): annotate ngMessages controller for minification
Browse files Browse the repository at this point in the history
  • Loading branch information
caitp authored and matsko committed May 15, 2014
1 parent 5a568b4 commit 0282ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngMessages/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ angular.module('ngMessages', [])

return {
restrict: 'AE',
controller: function($scope) {
controller: ['$scope', function($scope) {
this.$renderNgMessageClasses = angular.noop;

var messages = [];
Expand Down Expand Up @@ -276,7 +276,7 @@ angular.module('ngMessages', [])
return value !== null && value !== false && value;
}
};
},
}],
require: 'ngMessages',
link: function($scope, element, $attrs, ctrl) {
ctrl.renderElementClasses = function(bool) {
Expand Down

0 comments on commit 0282ca9

Please sign in to comment.