angularjs - Why does only the first option appear in select when using ng-options? -


If I have a population with ng-repeat selection and I make two choices below the selection, only the first Appears. Why is it like this?

Example:

  & lt; Select ID = "Select dropdown", ng-model = "selected dash.", Ng-option = "Dashboard ._id as a formal plate for dashboard in the dashboard" & gt; & Lt; Option value = "" & gt; This will be shown & lt; / Option & gt; & Lt; Option value = "" & gt; This & lt; / Option & gt; & Lt; / Select & gt;   

Any help is appreciated

angular only Null supports a blank (only) option.

See Rows 229-235 here::

 "code" option for "var" (var i = 0, children = element.children () , Ii = children.length; i & lt; ii; i ++) {if (children [i] .value === '') {empty option = zero option = kids.ac (i); break; }}   

As soon as a basic element is found with an empty value attribute, it sets the set as an empty option and stops appearing. Then the option (including an empty option) is generated and changes all the options there. Your second free option is being ignored.

Comments

Popular posts from this blog

c# - Textbox not clickable but editable -

Matlab transpose a table vector -

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -