File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ myAppModule.controller('MyController', function($scope) {
88
88
</select >
89
89
```
90
90
91
- Some time it may make sense to specify the options in the template file.
91
+ Some times it may make sense to specify the options in the template file.
92
92
93
93
``` html
94
94
<select ui-select2 =" { allowClear: true}" ng-model =" select2" >
@@ -98,6 +98,14 @@ Some time it may make sense to specify the options in the template file.
98
98
</select >
99
99
```
100
100
101
+ To define global defaults, you can configure the ` uiSelect2Config ` injectable:
102
+
103
+ ``` javascript
104
+ myAppModule .run ([' uiSelect2Config' , function (uiSelect2Config ) {
105
+ uiSelect2Config .placeholder = " Placeholder text" ;
106
+ }]);
107
+ ```
108
+
101
109
## Working with ng-model
102
110
103
111
The ui-select2 directive plays nicely with ng-model and validation directives such as ng-required.
You can’t perform that action at this time.
0 commit comments