1783283351 AngularJS by 2014

1783283351 AngularJS by 2014

Author:2014
Language: rus
Format: mobi
Publisher: ´
Published: 0101-01-01T00:00:00+00:00


Tip

JSFiddle: http://jsfiddle.net/msfrisbie/2d6mdt9m/

Null options

If you want to allow a null option, you can explicitly define one inside your <select> tag, as follows:

(index.html)

<select ng-model="player" ng-options="comprehension_expression">

<option value="">Choose a player</option>

</select>

Populating with an object

The <select> elements that use ngOptions can also be populated from an object's attributes. It functions similarly to how you would process a data array; the only difference being that you must define how the key-value pairs in the object will be used to generate the list of <option> elements. For a simple utilization to map the value object's number property to the entire value object, you can do the following:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.