Essay record
Angular: Select not Showing Options
- Record
- Essay / / 1 min read / 119 words
- Tags
- Unfiled
DISCLOSURE: Some links may be affiliate links. Details
**Problem: **I’m trying to create a
**Solution: **Make sure you’ve added options to populate your selector and an ng-model variable to hold the selected option. If you don’t have the options, there won’t be anything for the selector to pull in. If you don’t have an ng-model, Angular won’t display anything inside of your selector.
Example:
[[https://gist.github.com/SIRHAMY/42b1111f2b4d09021a3a](https://gist.github.com/SIRHAMY/42b1111f2b4d09021a3a)]Remember, the options are usually pulled in from a $scope.variable created in a controller. The ng-model variable will be accessible in any controller that has access to the surrounding select element.