Giter Site home page Giter Site logo

angular-debounce's People

Contributors

carmelc avatar elhigu avatar lfreneda avatar niemyjski avatar shahata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-debounce's Issues

Debounce causes double updates in validator

When using debounce="500" on an input element, my custom validate directive is fired twice for a single keypress.

In this codepen you can see that entering a single letter in the first input results in a double call to validation. Entering a char in the bottom input (without debounce), behaves normally and triggers only once: http://codepen.io/omichelsen/pen/uFoEb

Allow to be minified?

Since this is a released package via bower you should be using the dependency injection that allows this to be minified or ship with a minified version.

I can PR it in if you like.

Doesn't work with input type="number"

Unfortunately the debounce directive doesn't seem to work with inputs of type="number". Triggers right away. Tested in both Firefox and Chrome. Changing the input to type="text" does use the delay.

Version for Angular 1.1.5

Hey, this debounce project is great!

Do you think you can make it work with Angular 1.1.5? Currently, it breaks on this line:

var commitSoon = debounce(function (viewValue) {

with this error:

TypeError: object is not a function

http://jsfiddle.net/efmU6

Thanks!

Feature Request: Trigger on both edges

Changing param "immediate" to triggerOnEgde[leading, trailing, both] would be perfect for situations like pagination. A user would not wait if he clicks just once. And if he clicks multiple times all clicks between the first and the last are not counted but he'd get the data for the last click.

Controller 'ngModel', required by directive 'debounce', can't be found!

This is my code

<input ng-model="chunk.userInput" debounce="500">

and I get the following error:

Controller 'ngModel', required by directive 'debounce', can't be found!

Apart from the debounce directive my input field works just fine. My model is properly updated. But it just doesn't debounce!

I'm running angular v. 1.2.25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.