ionic-hammer-gestures
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i ionic-hammer-gestures

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

313 kB

Total Files

131

Last publish

Collaborators

  • tinyq