Created
August 31, 2016 07:22
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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