<div class="col-lg-6" ng-repeat="controls in steps.infos"> <div class="form-group"> <label class="control-label" for="store_list">{{controls.label}}</label> <input type="{{controls.type}}" class="form-control input-lg mandatory" id="{{controls.id}}" ng-model="formData[controls.id]" value="{{controls.value}}" name="control_{{controls.id}}" ngRequired="{{controls.mandatory}}"> </div> </div> above is my code where I am generating the dom elements dynamically only if it is input field.
I want to generate other types of input fields too. such as select box. is there any way I can achieve this by using directive or something. DOM elements are not in the order some may be input, other may be select then again inputs box might come.
Please help on this
Thanks