angular-download-attribute

WebJar for angular-download-attribute

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bowergithub.orianda
ArtifactId

ArtifactId

angular-download-attribute
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

angular-download-attribute
WebJar for angular-download-attribute
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/orianda/angular-download-attribute

Download angular-download-attribute

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.orianda/angular-download-attribute/ -->
<dependency>
    <groupId>org.webjars.bowergithub.orianda</groupId>
    <artifactId>angular-download-attribute</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.orianda/angular-download-attribute/
implementation 'org.webjars.bowergithub.orianda:angular-download-attribute:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.orianda/angular-download-attribute/
implementation ("org.webjars.bowergithub.orianda:angular-download-attribute:1.0.1")
'org.webjars.bowergithub.orianda:angular-download-attribute:jar:1.0.1'
<dependency org="org.webjars.bowergithub.orianda" name="angular-download-attribute" rev="1.0.1">
  <artifact name="angular-download-attribute" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.orianda', module='angular-download-attribute', version='1.0.1')
)
libraryDependencies += "org.webjars.bowergithub.orianda" % "angular-download-attribute" % "1.0.1"
[org.webjars.bowergithub.orianda/angular-download-attribute "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Angular download attribute

AngularJS (v1) polyfill about the HTML5 download attribute for anchor elements.

Covers the native HTML5 download attribute and supports download in case it is not supported in the browser natively.

This polyfill was especially made for Internet Explorer 10 and 11.

Install

bower install --save angular-download-attribute

Usage

<a href="/link/to/file.txt" download="description.txt">Download the text file</a>
<a href="data:text/plain;charset=UTF-8,hello world" download="greetings.txt">Download the embedded file</a>

In case the download attribute is supported natively, then this polyfill will not have any effect.

If the href attribute links to a file or the polyfill is not supported, at least the target attribute will be set to "_blank".

Otherwise, the download will be triggered via JavaScript.

Versions

Version
1.0.1