angular-download-attribute

WebJar for angular-download-attribute

Лицензия

Лицензия

MIT
Категории

Категории

Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

angular-download-attribute
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

angular-download-attribute
WebJar for angular-download-attribute
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать angular-download-attribute

Как подключить последнюю версию

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
1.0.1