Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60e8050

Browse files
committed
docs(select): add callout style for a note
1 parent 3c12d36 commit 60e8050

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ng/directive/select.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ var ngOptionsMinErr = minErr('ngOptions');
2828
* be nested into the `<select>` element. This element will then represent the `null` or "not selected"
2929
* option. See example below for demonstration.
3030
*
31-
* Note: `ngOptions` provides iterator facility for `<option>` element which should be used instead
31+
* <div class="alert alert-warning">
32+
* **Note:** `ngOptions` provides iterator facility for `<option>` element which should be used instead
3233
* of {@link ng.directive:ngRepeat ngRepeat} when you want the
3334
* `select` model to be bound to a non-string value. This is because an option element can only
3435
* be bound to string values at present.
36+
* </div>
3537
*
3638
* @param {string} ngModel Assignable angular expression to data-bind to.
3739
* @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) {
435437

436438
// We now build up the list of options we need (we merge later)
437439
for (index = 0; length = keys.length, index < length; index++) {
438-
440+
439441
key = index;
440442
if (keyName) {
441443
key = keys[index];

0 commit comments

Comments
 (0)