Socket
Socket
Sign inDemoInstall

@meanie/angular-debounce

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @meanie/angular-debounce

A simple service for debouncing function calls


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
13.0 kB
Created
Weekly downloads
 

Readme

Source

@meanie/angular-debounce

npm version node dependencies github issues codacy

A simple Angular service for debouncing function calls

Meanie

Installation

You can install this package using yarn or npm:

#yarn
yarn add @meanie/angular-debounce

#npm
npm install @meanie/angular-debounce --save

Include the script node_modules/@meanie/angular-debounce/release/angular-debounce.js in your build process, or add it via a <script> tag to your index.html:

<script src="node_modules/@meanie/angular-debounce/release/angular-debounce.js"></script>

Add Debounce.Service as a dependency for your app.

Usage

Include the $debounce service in your controller or component:

angular.module('App.MyModule').controller('MyController', function($debounce) => {

  function someFunction() {
    console.log('I am debounced');
  }

  //Debounce
  $debounce(someFunction, 1000);
});

The $debounce service returns a promise which will be resolved with the return value of the debounced function once the underlying timeout resolves.

Issues & feature requests

Please report any bugs, issues, suggestions and feature requests in the @meanie/angular-debounce issue tracker.

Contributing

Pull requests are welcome! If you would like to contribute to Meanie, please check out the Meanie contributing guidelines.

Sponsor

This package has been kindly sponsored by Hello Club, an all in one club and membership management solution complete with booking system, automated membership renewals, online payments and integrated access and light control. Check us out if you happen to belong to any kind of club or if you know someone who helps run a club!

License

(MIT License)

Copyright 2015-2020, Adam Reis

Keywords

FAQs

Last updated on 27 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc