Change the name of the download file in the Angular

0

I have a link that perfectly downloads a file:

<a ng-if="slide.link && slide.link != 'null' && slide.anexos_id" href="{{ slide.link }}" download="'{{ slide.anexos_name }}'" target="_blank">
                            <img ng-src='{{ slide.base64 }}' alt="{{slide.name}}" ng-href="" style="max-height: 625px" />
                        </a>

But I need to rename the file before the download, and the "download" attribute does not work, what do I do?

    
asked by anonymous 29.03.2018 / 16:48

0 answers