Hi I am developing web application in angularjs. I am developing file upload module. I am doing it dynamically. I will get a list of files to be uploaded from api call. Once i get list i assign dynamically to scope variable of ng-repeat directive as below.
<div class="upload-button" ng-repeat="fileInput in fileInputs">
<div ng-if="fileInput.Filepath == ''">
<input type="file" file-data="{{fileInput.Filename}}" file-model="
{{fileInput.Filename}}" id="file_input_id" required valid-file/>
</div>
</div>
Suppose if i get 7 files from api then i will get 7 file upload controls. I want to make all 7 controls mandatory on submiting the form. May i know how this can be done? Any help would be appreciated. Thank you.