I'm just learning so forgive me if my question is transparent. Now I've got in controller:
$scope.fileUrl = 'test/data_1.zip';
$scope.fileName = 'myData';
In html:
<a href="{{fileUrl}}" download="{{fileName}}"> Download version 1 </a>
So, maybe tomorrow I'll add in folder test file data_2.zip... and then over and over again. Hence I will be forced to write almost the same line in the html & controller many times... How can I automatize that process? I hope what I have requested is possible, any help will be appreciated :)