npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ngtouch

v1.0.1

Published

An angular module to add directives for touch devices

Downloads

3,629

Readme

nglar - ngTouch

A angular module to add directives for touch devices.

Build Status StyleCI Status Total Downloads Dependencies Dev Dependencies License Issues Forks GitHub stars Twitter Gratipay donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

Info

Version: 1.0.1
Author: Mark Topper [Facebook] [Github] [Twitter]
Website: www.webman.io
Email: [email protected]

Installing/Loading

Install using bower:

bower install ngtouch --save

Load the file to you HTML header:

<script type="text/javascript" src="path/to/bower_components/ngtouch/build/ngTouch.min.js"></script>

Usage

You must include the ngTouch dependency on your angular module:

var app = angular.module("demoapp", ["ngTouch"]);

Then in your HTML you can use:

<div ng-touchmove="someFunction($event)" ng-touchstart="someFunction($event)" ng-touchend="someFunction($event)"></div>

ng-touchstart

Once a touch device start touching, this event will be called.

Here is a usage example:

yourController.js

$scope.onTouchstart = function($event) {
   console.log('touchstart event called');
}

yourView.html

<div ng-touchstart="onTouchstart($event)"></div>

Get ngTouchstart standalone.

ng-touchend

Once a touch device end touching, this event will be called.

Here is a usage example:

yourController.js

$scope.onTouchend = function($event) {
   console.log('touchend event called');
}

yourView.html

<div ng-touchend="onTouchend($event)"></div>

Get ngTouchend standalone.

ng-touchmove

Whenever a touch device is touched and moving.

Here is a usage example:

yourController.js

$scope.onTouchmove = function($event) {
   console.log('touchmove event called');
}

yourView.html

<div ng-touchmove="onTouchmove($event)"></div>

Get ngTouchmove standalone.

Links

The following is a list of libraries that extend ngTouch:

  • None yet

Contact me at [email protected] to get yours added.

The following is a list of libraries that requires by ngTouch:

  • Angular: HTML enhanced for web apps

The following is a list of alternatives for ngTouch:

  • ngTouchmove: A angular module to add directive ng-touchmove.

  • ngTouchstart: A angular module to add directive ng-touchstart.

  • ngTouchend: A angular module to add directive ng-touchend.

Tests

From the project directory, tests can be ran using gulp test

Official Documentation

Documentation for this library can be found on the website.

Contributing

Thank you for considering contributing! The contribution guide can be found in the contributions.md.

Security Vulnerabilities

If you discover a security vulnerability within ngTouch, please send an e-mail to Mark Topper at [email protected]. All security vulnerabilities will be promptly addressed.

License

Released under the MIT License - see license.txt for details.