I want to set a select whose options will be generated by a ng-repeat, but for this I want to pass a number, for example if I pass the number 5 in the variable will be set 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.