I recently started using a helpful library called Angular Material File input
<div layout layout-wrap flex="100" ng-repeat="val in UploadDocuments">
<div flex="100" flex-gt-sm="45">
<div class="md-default-theme" style="margin-left:40px; color: #666666">{{val}}</div>
<div style="margin-top:-8px;">
<lf-ng-md-file-input lf-files='$parent.files' lf-api="stimg" ng-disabled="!enableFileBrowse"> </lf-ng-md-file-input>
</div>
</div>
</div>
My goal is to dynamically generate lf-files='$parent.files'
, such as lf-files='$parent.file1'
, lf-files='$parent.file2'
, lf-files='$parent.file3'
, based on the iteration in ng-loop
.
Unfortunately, the commonly used trick of
lf-files='$parent.file{{$index}}'
is not yielding the desired results.
Can anyone provide guidance on how to achieve dynamic generation?