Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix(ngTouch): deprecate the module and its contents
Browse files Browse the repository at this point in the history
Closes #16427
Closes #16431
  • Loading branch information
Narretz authored Feb 1, 2018
1 parent 3fc6843 commit 67f54b6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ngTouch/directive/ngSwipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
* @ngdoc directive
* @name ngSwipeLeft
*
* @deprecated
* sinceVersion="1.7.0"
*
* See the {@link ngTouch module} documentation for more information.
*
* @description
* 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.
Expand Down Expand Up @@ -42,6 +47,11 @@
* @ngdoc directive
* @name ngSwipeRight
*
* @deprecated
* sinceVersion="1.7.0"
*
* See the {@link ngTouch module} documentation for more information.
*
* @description
* Specify custom behavior when an element is swiped to the right on a touchscreen device.
* A rightward swipe is a quick, left-to-right slide of the finger.
Expand Down
5 changes: 5 additions & 0 deletions src/ngTouch/swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
* @ngdoc service
* @name $swipe
*
* @deprecated
* sinceVersion="1.7.0"
*
* See the {@link ngTouch module} documentation for more information.
*
* @description
* 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.
Expand Down
7 changes: 7 additions & 0 deletions src/ngTouch/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
*
* See {@link ngTouch.$swipe `$swipe`} for usage.
*
* @deprecated
* sinceVersion="1.7.0"
* The ngTouch module with the {@link ngTouch.$swipe `$swipe`} service and
* the {@link ngTouch.ngSwipeLeft} and {@link ngTouch.ngSwipeRight} directives are
* deprecated. Instead, stand-alone libraries for touch handling and gesture interaction
* should be used, for example [HammerJS](https://hammerjs.github.io/) (which is also used by
* Angular).
*/

// define ngTouch module
Expand Down

0 comments on commit 67f54b6

Please sign in to comment.