Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/binocarlos/hammer-for-angular

Component build for hammer directives in angular.js
https://github.com/binocarlos/hammer-for-angular

Last synced: 11 days ago
JSON representation

Component build for hammer directives in angular.js

Awesome Lists containing this project

README

        

hammer-for-angular
==================

Component build for hammer directives in angular.js

## installation

$ component install binocarlos/hammer-for-angular

## usage

```js
// we must register the component with angular
require('hammer-for-angular');

angular
.module("myModule", [
"hmTouchevents"
])
```

We can now use the hammer directives in our app

```html

hello

```

You can change the default settings for the instance by adding a second attribute with options:

hm-options="{drag: false, transform: false}"

Totally [stolen](https://github.com/randallb/angular-hammer) and wrapped up as component.

## Licence

MIT