diff options
| author | Braden Shepherdson | 2013-02-08 13:39:23 -0500 |
|---|---|---|
| committer | Igor Minar | 2013-03-13 22:59:06 -0700 |
| commit | 707c65d5a228b44ab3aea2fad95516fe6c57169a (patch) | |
| tree | 547fabaa6c57da04ee8e683a89515b9f1e091cbd /src/ngMobile/mobile.js | |
| parent | d1b49e25f1c8e303d57f44d1d3417dbefb194a5c (diff) | |
| download | angular.js-707c65d5a228b44ab3aea2fad95516fe6c57169a.tar.bz2 | |
feat(ngMobile): add ngMobile module with mobile-specific ngClick
Add a new module ngMobile, with mobile/touch-specific directives.
Add ngClick, which overrides the default ngClick. This ngClick uses touch
events, which are much faster on mobile. On desktop browsers, ngClick
responds to click events, so it can be used for portable sites.
Diffstat (limited to 'src/ngMobile/mobile.js')
| -rw-r--r-- | src/ngMobile/mobile.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ngMobile/mobile.js b/src/ngMobile/mobile.js new file mode 100644 index 00000000..c8fd8843 --- /dev/null +++ b/src/ngMobile/mobile.js @@ -0,0 +1,16 @@ +'use strict'; + +/** + * @ngdoc overview + * @name ngMobile + * @description + */ + +/* + * Touch events and other mobile helpers by Braden Shepherdson (braden.shepherdson@gmail.com) + * Based on jQuery Mobile touch event handling (jquerymobile.com) + */ + +// define ngSanitize module and register $sanitize service +var ngMobile = angular.module('ngMobile', []); + |
