diff options
| author | Brian Ford | 2013-08-22 12:32:42 -0700 | 
|---|---|---|
| committer | Brian Ford | 2013-08-22 16:55:54 -0700 | 
| commit | 57c43dd3762ea665125bff7e4727bce06a225b32 (patch) | |
| tree | 5002413ad53358a509d881f7999903e01c51f124 /src/ngTouch/swipe.js | |
| parent | 99175f429417318e2087a92dd21bc8d5351c97a3 (diff) | |
| download | angular.js-57c43dd3762ea665125bff7e4727bce06a225b32.tar.bz2 | |
docs(module): improve the installation instructions for optional modules
Currently, the documentation does a bad job of explaining the distinction between the services that it provides,
and the module itself. Furthermore, the instructions for using optional modules are inconsistent or missing.
This commit addresses the problem by ading a new `{@installModule foo}` annotation to the docs generator that
inlines the appropriate instructions based on the name of the module.
Diffstat (limited to 'src/ngTouch/swipe.js')
| -rw-r--r-- | src/ngTouch/swipe.js | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/ngTouch/swipe.js b/src/ngTouch/swipe.js index 655043f8..0ee4218e 100644 --- a/src/ngTouch/swipe.js +++ b/src/ngTouch/swipe.js @@ -8,7 +8,9 @@       * 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.       * -     * It is used by the `ngSwipeLeft` and `ngSwipeRight` directives in `ngTouch`, and by +     * Requires the {@link ngTouch `ngTouch`} module to be installed. +     * +     * `$swipe` is used by the `ngSwipeLeft` and `ngSwipeRight` directives in `ngTouch`, and by       * `ngCarousel` in a separate component.       *       * # Usage | 
