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

Commit 0282ca9

Browse files
caitpmatsko
authored andcommitted
fix(ngMessages): annotate ngMessages controller for minification
1 parent 5a568b4 commit 0282ca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngMessages/messages.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ angular.module('ngMessages', [])
235235

236236
return {
237237
restrict: 'AE',
238-
controller: function($scope) {
238+
controller: ['$scope', function($scope) {
239239
this.$renderNgMessageClasses = angular.noop;
240240

241241
var messages = [];
@@ -276,7 +276,7 @@ angular.module('ngMessages', [])
276276
return value !== null && value !== false && value;
277277
}
278278
};
279-
},
279+
}],
280280
require: 'ngMessages',
281281
link: function($scope, element, $attrs, ctrl) {
282282
ctrl.renderElementClasses = function(bool) {

0 commit comments

Comments
 (0)