diff options
| author | Brian Ford | 2014-01-21 17:02:50 -0800 |
|---|---|---|
| committer | Brian Ford | 2014-01-21 17:02:50 -0800 |
| commit | 60e80509a8f69a7fa750c3399b84bd0d4cc53855 (patch) | |
| tree | cc54416dfaded6d3ec5b1b39be662709abecf945 /src/ng/directive/select.js | |
| parent | 3c12d36e730dfbf8e2dbba773df5879437276d7a (diff) | |
| download | angular.js-60e80509a8f69a7fa750c3399b84bd0d4cc53855.tar.bz2 | |
docs(select): add callout style for a note
Diffstat (limited to 'src/ng/directive/select.js')
| -rw-r--r-- | src/ng/directive/select.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ng/directive/select.js b/src/ng/directive/select.js index e429af5f..e44b61e9 100644 --- a/src/ng/directive/select.js +++ b/src/ng/directive/select.js @@ -28,10 +28,12 @@ var ngOptionsMinErr = minErr('ngOptions'); * be nested into the `<select>` element. This element will then represent the `null` or "not selected" * option. See example below for demonstration. * - * Note: `ngOptions` provides iterator facility for `<option>` element which should be used instead + * <div class="alert alert-warning"> + * **Note:** `ngOptions` provides iterator facility for `<option>` element which should be used instead * of {@link ng.directive:ngRepeat ngRepeat} when you want the * `select` model to be bound to a non-string value. This is because an option element can only * be bound to string values at present. + * </div> * * @param {string} ngModel Assignable angular expression to data-bind to. * @param {string=} name Property name of the form under which the control is published. @@ -435,7 +437,7 @@ var selectDirective = ['$compile', '$parse', function($compile, $parse) { // We now build up the list of options we need (we merge later) for (index = 0; length = keys.length, index < length; index++) { - + key = index; if (keyName) { key = keys[index]; |
