Hi,

I have a set of drop-downs in my application. All of them have the same 
code implementation. Still, in the last drop-down, I see an error in IE9 
and IE10.

This is the error:

When I load that page, the drop-down is set to value *{{item1}}* instead of 
its correct value. Even if I change that value to something else and then 
Save it, on refresh/ navigating again to this page, I see the value as 
*{{item1}}*.

I have tried a number of approach to resolve this error:

   1. Suspecting that this might be a naming conflict issue, I changed the 
   *{{item1}}* to *{{item2}}* in my html code.
   2. Introduced *$scope.$apply()* using *$timeout*; in case the $digest 
   cycle did not run properly.
   3. Changed the binding from *{{}}* to ng-bind.
   4. Used *_value* instead of *value* in *value=”{{item1}}”* in case IE 
   does not implement *<**template>*. (Source: 
   
https://www.polymer-project.org/0.5/docs/polymer/databinding-compat.html#binding-to-attributes
   )

However, I did not get any success from the above work-arounds.

PS: The GET and POST requests are fetching and sending the correct value. 
It is only while displaying that *{{item1}}* is getting displayed.

Here is the code where I am running into issue:

<select id="return_code" class="form-control" 
ng-model="checklistitem.properties.return_code">
      <option value="" translate>Select a Return Code</option>
      <option ng-repeat="item1 in project.properties.possible_return_code" 
value="{{item1}}"
              ng-selected="item1 == 
checklistitem.properties.return_code">{{item1}}</option>
 </select>


Can anyone guide me on how to resolve this error?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to