Hi @User-11148958,
what do you mean by download is
"not working"? I set up a quick example in
Plunker[
^] that uses pretty much your code. When I click the
DOWNLOAD link, it opens the browser's default download dialog.
As your link does not contain any angular-specific statements (like e.g.
{{/*...*/}}
), you even should not need the
ng-href
for the download link, but stick with the plain HTML
href
hyper-reference attribute. See
the docs[
^] for more details and examples.
Just in case the Plunker link isn't working, this is the example code. To make the download link work, create an empty file, name it
download.pdf and place it next to the HMTL file.
<!--
<!doctype html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.0.4/css/bootstrap-combined.min.css">
</head>
<body>
<div>
<p><a href="download.pdf" download="file.pdf">DOWNLOAD</p>
</body>
</html>
If you have any further questions, please let me know.
Best, K.