angular-blink
v0.0.5
Published
Angular 1.5 component polyfill for the legendary blink element.
Downloads
18
Readme
Angular Blink
Angular 1.5 component polyfill for the legendary blink element.
Installation
npm install angular-blink
Usage
Inject 'angularBlink' into your Angular 1.5 app, then use <ng-blink>...</ng-blink>
in your template.
API
<ng-blink rate="750"
blink="true"
value="true"
on-blink="vm.blinkHandler()"
name="Blink 1"
>...</ng-blink>
rate | < number | default: 750 | milliseconds between value change
blink | < boolean | default: true | stop and start blinking
value | < boolean | default: true | override state
on-blink | & expression (name, value) | default: null | event handler
name | @ string | default 'Not Named' | event identifier
Additional Features
Wrap block-level content. e.g.:
<ng-blink rate="31557600000">
<div class="contact-info">
Email: <a href="mailto:[email protected]">[email protected]</a>
</div>
</ng-blink>
<ng-blink>
<section id="main-content">
...
</section>
</ng-blink>
Angular 2
Angular 2 Typescript version coming soon...