Skip to content

Commit b9e2d0d

Browse files
committed
refac: ng-model is now required
There is no real purpose in using select2 without an `ng-model` so I'm simply going to make it required and remove the conditional code.
1 parent a2f58b7 commit b9e2d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ angular.module('ui.select2', []).value('uiSelect2Config', {}).directive('uiSelec
1111
angular.extend(options, uiSelect2Config);
1212
}
1313
return {
14-
require: '?ngModel',
14+
require: 'ngModel',
1515
compile: function (tElm, tAttrs) {
1616
var watch,
1717
repeatOption,

0 commit comments

Comments
 (0)