ionic-hammer-gestures
v1.0.0
Published
Ionic component providing a HammerJS with a ts
Downloads
2
Maintainers
Readme
ionic-hammer-gestures
A simple international telephone number input. Allows you to create a phone number field with country dropdown.
Installation
To install this library, run:
$ npm install ionic-hammer-gestures --save
Consuming your library
Once you have installed it you can import InonicHammerGestureModule
from ionic-hammer-gestures
in any application module. E.g.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { InonicHammerGestureModule } from 'ionic-hammer-gestures';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// InonicHammerGestureModule module
InonicHammerGestureModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Once it is imported, you can use <img></img>
:
<!-- app.component.html -->
<img [src]="url" pan pinch tap doubletap swipe transitionactive="active"
(panChange)="panChange($event)"
(pinchChange)="pinchChange($event)"
(tapChange)="tapChange($event)"
(doubletapChange)="doubletapChange($event)"
(swipeChange)="swipeChange($event)"
></img>
License
MIT