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 /Gruntfile.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 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/Gruntfile.js b/Gruntfile.js index eea8b8ab..8facd45f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -85,6 +85,13 @@ module.exports = function(grunt) {          dest: 'build/angular-loader.js',          src: util.wrap(['src/loader.js'], 'loader')        }, +      mobile: { +        dest: 'build/angular-mobile.js', +        src: util.wrap([ +          'src/ngMobile/mobile.js', +          'src/ngMobile/directive/ngClick.js' +            ], 'module') +      },        mocks: {          dest: 'build/angular-mocks.js',          src: ['src/ngMock/angular-mocks.js'], @@ -125,6 +132,7 @@ module.exports = function(grunt) {        angular: 'build/angular.js',        cookies: 'build/angular-cookies.js',        loader: 'build/angular-loader.js', +      mobile: 'build/angular-mobile.js',        resource: 'build/angular-resource.js',        sanitize: 'build/angular-sanitize.js',        bootstrap: 'build/angular-bootstrap.js', | 
