Olivier,

Put it in a array on the scope, and iterate.

in the controller: 

  $scope.items = [
     {value : 1 , description : 'Hello darkness,'},
     {value : 2 , description : 'my old friend'},
     {value : 3 , description : 'I'v come to talk with you again.'},
     {value : 4 , description : 'Because a vision softly creeping'},
   ];

in template: <doptions ng-repeat='item in items' 
value='item.value>{{item.description}}</doptions>

Regards
Sander

-- 
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/groups/opt_out.

Reply via email to