angular-wheelie
angular-wheelie exposes a service that allows you to bind wheel events to an angular element.
Installation
Install with bower:
bower install angular-wheelie
Or with npm:
npm install angular-wheelie
Or simply download the latest release.
Usage
The pre-built files can be found in the dist/
directory.
dist/angular-wheelie.min.js
is minified and production-ready. Example usage:
Add wheelie
to your app's module dependencies:
angular;
And now you can use the wheelie
service in your controllers, directives,
services etc. Example usage in a controller:
app;
Not all callbacks are required, but at least one must be provided.
In the above example, all wheel events from #someElement
will trigger one of
the callbacks. To ignore wheel events from a nested element, pass the nested
element's class-name as the third parameter:
app;
Contributing
Contributions are welcomed! Here are the contribution guidelines.
First clone the repository and install dependencies:
npm install
To run tests:
npm test
To lint the code:
npm run lint
To make a production build:
npm run build