diff options
| author | Vojta Jina | 2011-11-11 17:15:22 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:19 -0800 | 
| commit | acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c (patch) | |
| tree | 2483609ada03b9e6ff477596f0402dc24fdd7518 /src/service/route.js | |
| parent | 035c7510763a9742294d51ba55aea0b6dd08ea58 (diff) | |
| download | angular.js-acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c.tar.bz2 | |
style(docs): make jslint happy - fix some warnings
Diffstat (limited to 'src/service/route.js')
| -rw-r--r-- | src/service/route.js | 42 | 
1 files changed, 21 insertions, 21 deletions
diff --git a/src/service/route.js b/src/service/route.js index 61f43c29..97c9cee0 100644 --- a/src/service/route.js +++ b/src/service/route.js @@ -2,7 +2,7 @@  /**   * @ngdoc object - * @name angular.module.NG.$route + * @name angular.module.ng.$route   * @requires $location   * @requires $routeParams   * @@ -14,7 +14,7 @@   * definition. It is used for deep-linking URLs to controllers and views (HTML partials).   *   * The `$route` service is typically used in conjunction with {@link angular.widget.ng:view ng:view} - * widget and the {@link angular.module.NG.$routeParams $routeParams} service. + * widget and the {@link angular.module.ng.$routeParams $routeParams} service.   *   * @example     This example shows how changing the URL hash causes the <tt>$route</tt> @@ -67,8 +67,8 @@ function $RouteProvider(){        function( $rootScope,  $location,  $routeParams) {      /**       * @ngdoc event -     * @name angular.module.NG.$route#$beforeRouteChange -     * @eventOf angular.module.NG.$route +     * @name angular.module.ng.$route#$beforeRouteChange +     * @eventOf angular.module.ng.$route       * @eventType broadcast on root scope       * @description       * Broadcasted before a route change. @@ -79,14 +79,14 @@ function $RouteProvider(){       * The `Route` object extends the route definition with the following properties.       *       *    * `scope` - The instance of the route controller. -     *    * `params` - The current {@link angular.module.NG.$routeParams params}. +     *    * `params` - The current {@link angular.module.ng.$routeParams params}.       *       */      /**       * @ngdoc event -     * @name angular.module.NG.$route#$afterRouteChange -     * @eventOf angular.module.NG.$route +     * @name angular.module.ng.$route#$afterRouteChange +     * @eventOf angular.module.ng.$route       * @eventType broadcast on root scope       * @description       * Broadcasted after a route change. @@ -97,14 +97,14 @@ function $RouteProvider(){       * The `Route` object extends the route definition with the following properties.       *       *    * `scope` - The instance of the route controller. -     *    * `params` - The current {@link angular.module.NG.$routeParams params}. +     *    * `params` - The current {@link angular.module.ng.$routeParams params}.       *       */      /**       * @ngdoc event -     * @name angular.module.NG.$route#$routeUpdate -     * @eventOf angular.module.NG.$route +     * @name angular.module.ng.$route#$routeUpdate +     * @eventOf angular.module.ng.$route       * @eventType emit on the current route scope       * @description       * @@ -122,8 +122,8 @@ function $RouteProvider(){            /**             * @ngdoc method -           * @name angular.module.NG.$route#parent -           * @methodOf angular.module.NG.$route +           * @name angular.module.ng.$route#parent +           * @methodOf angular.module.ng.$route             *             * @param {Scope} [scope=rootScope] Scope to be used as parent for newly created             *    `$route.current.scope` scopes. @@ -138,8 +138,8 @@ function $RouteProvider(){            /**             * @ngdoc method -           * @name angular.module.NG.$route#when -           * @methodOf angular.module.NG.$route +           * @name angular.module.ng.$route#when +           * @methodOf angular.module.ng.$route             *             * @param {string} path Route path (matched against `$location.hash`)             * @param {Object} route Mapping information to be assigned to `$route.current` on route @@ -153,7 +153,7 @@ function $RouteProvider(){             *      {@link angular.widget.ng:view ng:view} or             *      {@link angular.widget.ng:include ng:include} widgets.             *    - `redirectTo` – {(string|function())=} – value to update -           *      {@link angular.module.NG.$location $location} path with and trigger route redirection. +           *      {@link angular.module.ng.$location $location} path with and trigger route redirection.             *             *      If `redirectTo` is a function, it will be called with the following parameters:             * @@ -170,7 +170,7 @@ function $RouteProvider(){             *             *      If the option is set to false and url in the browser changes, then             *      $routeUpdate event is emited on the current route scope. You can use this event to -           *      react to {@link angular.module.NG.$routeParams} changes: +           *      react to {@link angular.module.ng.$routeParams} changes:             *             *            function MyCtrl($route, $routeParams) {             *              this.$on('$routeUpdate', function() { @@ -193,8 +193,8 @@ function $RouteProvider(){            /**             * @ngdoc method -           * @name angular.module.NG.$route#otherwise -           * @methodOf angular.module.NG.$route +           * @name angular.module.ng.$route#otherwise +           * @methodOf angular.module.ng.$route             *             * @description             * Sets route definition that will be used on route change when no other route definition @@ -208,12 +208,12 @@ function $RouteProvider(){            /**             * @ngdoc method -           * @name angular.module.NG.$route#reload -           * @methodOf angular.module.NG.$route +           * @name angular.module.ng.$route#reload +           * @methodOf angular.module.ng.$route             *             * @description             * Causes `$route` service to reload (and recreate the `$route.current` scope) upon the next -           * eval even if {@link angular.module.NG.$location $location} hasn't changed. +           * eval even if {@link angular.module.ng.$location $location} hasn't changed.             */            reload: function() {              dirty++;  | 
