I have select elements with the same options throughout the entire app, but they may vary in appearance. For example, selects for a user's birthday (day, month, year).
Is it possible to create a directive that can provide values or expressions for ng-options
?
For instance,
<select my-options-months></select>
, where my-options-months
would automatically generate options with values ranging from 1
to 12
using the ng-options
directive.