Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrea-ale-sbarra/37c9b3cbaddd1e5c7c44886c0212e072 to your computer and use it in GitHub Desktop.
Save andrea-ale-sbarra/37c9b3cbaddd1e5c7c44886c0212e072 to your computer and use it in GitHub Desktop.
I have a team instance in user and a list of teams from which I should preselect the value to show in my option.
<select ng-options="option.name for option in $ctrl.teams track by option.id" ng-model="user.team"></select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment