Hi, 

Given this object:

  $scope.HuslejeOgUdgifter = {
    AnslaaetElType: {
      EditorId: 41414,
      Id: 51,
      Alias: "anslaaetElType",
      Value: "Aconto",
      PreValues: [
        {
          Value: "Tilmelding",
          Id: 49,
          SortOrder: 1
        },
        {
          Value: "Inklusiv",
          Id: 50,
          SortOrder: 2
        },
        {
          Value: "Aconto",
          Id: 51,
          SortOrder: 3
        }
      ]
    }
  }

To this element

<select 
    ng-options="s.Id as s.Value  for s in 
HuslejeOgUdgifter.AnslaaetElType.PreValues track by s.Id"
    ng-model="HuslejeOgUdgifter.AnslaaetElType.Id" 
    no-dirty-check>
</select> 

How can i get the dropdown to initially select by it's model: 
 $scope.HuslejeOgUdgifter.AnslaaetElType.Id

Here is a plnk that will show how far i got so far... 
https://plnkr.co/edit/MaCgoj

Thanks, 

//casper 

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to