2
I want to mount a select whose options will be generated by an ng-repeat, but for this I want to pass a number, for example if I pass the number 5 in the variable will be mounted 5 options with values 1,2,3,4,5.
<md-select ng-disabled="!novoCadastro.curso" required ng-model="novoCadastro.periodo">
<md-option ng-value=""></md-option>
<md-option ng-value="periodo" ng-repeat="periodo in novoCadastro.curso.periodo">{{periodo}}</md-option>
</md-select>
In my newCadastro.curso.periodo will be where I will declare a number.
Okay, thank you very much, since it is not a good practice I will do as you told me.
– Erick Zanetti
@Erickzanetti does not forget after mark as accepted answer if solve your problem. Thanks.
– Paulo