ngTouch.provider

Name Description $touchProvider The $touchProvider allows enabling / disabling ngTouch's ngClick directive.

ngTouch.service

Name Description $swipe The $swipe service is a service that abstracts the messier details of hold-and-drag swipe behavior, to make implementing swipe-related directives more convenient. $touch Provides the ngClickOverrideEnabled method.

ngTouch.ngClick

directive in module ngTouch DEPRECATION NOTICE: Beginning with Angular 1.5, this directive is deprecated and by default disabled. The directive will receive no further support and might be removed from future releases. If you need the directive, you can enable it with the $touchProvider#ngClickOverrideEnabled function. We also recommend that you migrate to FastClick. To learn more about the 300ms delay, this Telerik article gives a good overview. A more powerful replacement for the defa

ngTouch.directive

Name Description ngClick DEPRECATION NOTICE: Beginning with Angular 1.5, this directive is deprecated and by default disabled. The directive will receive no further support and might be removed from future releases. If you need the directive, you can enable it with the $touchProvider#ngClickOverrideEnabled function. We also recommend that you migrate to FastClick. To learn more about the 300ms delay, this Telerik article gives a good overview. A more powerful replacement for the default ngC

ngTouch.ngSwipeLeft

directive in module ngTouch Specify custom behavior when an element is swiped to the left on a touchscreen device. A leftward swipe is a quick, right-to-left slide of the finger. Though ngSwipeLeft is designed for touch-based devices, it will work with a mouse click and drag too. To disable the mouse click and drag functionality, add ng-swipe-disable-mouse to the ng-swipe-left or ng-swipe-right DOM Element. Requires the ngTouch module to be installed. Directive Info This directive execut

ngTouch.$touchProvider.ngClickOverrideEnabled()

ngClickOverrideEnabled([enabled]); Call this method to enable/disable ngTouch's ngClick directive. If enabled, the default ngClick directive will be replaced by a version that eliminates the 300ms delay for click events on browser for touch-devices. The default is false. Parameters Param Type Details enabled (optional) boolean update the ngClickOverrideEnabled state if provided, otherwise just return the current ngClickOverrideEnabled state Returns * current value if used as getter o

ngTouch.$touchProvider

$touch provider in module ngTouch The $touchProvider allows enabling / disabling ngTouch's ngClick directive. Methods ngClickOverrideEnabled([enabled]); Call this method to enable/disable ngTouch's ngClick directive. If enabled, the default ngClick directive will be replaced by a version that eliminates the 300ms delay for click events on browser for touch-devices. The default is false. Parameters Param Type Details enabled (optional) boolean update the ngClickOverrideEnabled s

ngTouch.$touch.ngClickOverrideEnabled()

ngClickOverrideEnabled(); Returns * current value of ngClickOverrideEnabled set in the $touchProvider, i.e. if ngTouch's ngClick directive is enabled.

ngTouch.$swipe.bind()

bind(); The main method of $swipe. It takes an element to be watched for swipe motions, and an object containing event handlers. The pointer types that should be used can be specified via the optional third argument, which is an array of strings 'mouse' and 'touch'. By default, $swipe will listen for mouse and touch events. The four events are start, move, end, and cancel. start, move, and end receive as a parameter a coordinates object of the form { x: 150, y: 310 } and the raw event. cancel

ngTouch.$touch

$touchProvider service in module ngTouch Provides the ngClickOverrideEnabled method. Methods ngClickOverrideEnabled(); Returns * current value of ngClickOverrideEnabled set in the $touchProvider, i.e. if ngTouch's ngClick directive is enabled.