From 6b0efa432cdf1596383aaeb7ffcad4bf0ab1af9b Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Thu, 10 Apr 2014 15:25:15 -0400 Subject: [PATCH] docs(ngTouch): define module depending on ngTouch in ngTouch examples In addition to requiring that the file is loaded, it's also necessary to depend on the ngTouch module when creating the injector. --- src/ngTouch/directive/ngClick.js | 5 ++++- src/ngTouch/directive/ngSwipe.js | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/ngTouch/directive/ngClick.js b/src/ngTouch/directive/ngClick.js index 777bd997354b..3ac1e3f24a10 100644 --- a/src/ngTouch/directive/ngClick.js +++ b/src/ngTouch/directive/ngClick.js @@ -25,13 +25,16 @@ * upon tap. (Event object is available as `$event`) * * @example - + count: {{ count }} + + angular.module('ngClickExample', ['ngTouch']); + */ diff --git a/src/ngTouch/directive/ngSwipe.js b/src/ngTouch/directive/ngSwipe.js index 091aba8e1a7b..d3259426a2f3 100644 --- a/src/ngTouch/directive/ngSwipe.js +++ b/src/ngTouch/directive/ngSwipe.js @@ -19,7 +19,7 @@ * upon left swipe. (Event object is available as `$event`) * * @example - +
Some list content, like an email in the inbox @@ -29,6 +29,9 @@
+ + angular.module('ngSwipeLeftExample', ['ngTouch']); +
*/ @@ -49,7 +52,7 @@ * upon right swipe. (Event object is available as `$event`) * * @example - +
Some list content, like an email in the inbox @@ -59,6 +62,9 @@
+ + angular.module('ngSwipeRightExample', ['ngTouch']); +
*/