File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 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) {
8888</select >
8989```
9090
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.
9292
9393``` html
9494<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.
9898</select >
9999```
100100
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+
101109## Working with ng-model
102110
103111The 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