diff options
| author | Vojta Jina | 2013-10-22 14:41:21 -0700 | 
|---|---|---|
| committer | Vojta Jina | 2013-10-22 15:32:41 -0700 | 
| commit | f2fab498303e00d199cb3d19a008670e214d5c10 (patch) | |
| tree | 3aa88fdb1f63bbed45c7541232a0fdfac226c126 /src/ngRoute/directive | |
| parent | 934a95d3ef3f72dfc37b0b564624cb4a1286d4f4 (diff) | |
| download | angular.js-f2fab498303e00d199cb3d19a008670e214d5c10.tar.bz2 | |
style: make jshint happy
Diffstat (limited to 'src/ngRoute/directive')
| -rw-r--r-- | src/ngRoute/directive/ngView.js | 31 | 
1 files changed, 16 insertions, 15 deletions
| diff --git a/src/ngRoute/directive/ngView.js b/src/ngRoute/directive/ngView.js index 1706e25a..ab1327d0 100644 --- a/src/ngRoute/directive/ngView.js +++ b/src/ngRoute/directive/ngView.js @@ -113,20 +113,21 @@ ngRouteModule.directive('ngView', ngViewFactory);        </file>        <file name="script.js"> -        angular.module('ngViewExample', ['ngRoute', 'ngAnimate'], function($routeProvider, $locationProvider) { -          $routeProvider.when('/Book/:bookId', { -            templateUrl: 'book.html', -            controller: BookCntl, -            controllerAs: 'book' -          }); -          $routeProvider.when('/Book/:bookId/ch/:chapterId', { -            templateUrl: 'chapter.html', -            controller: ChapterCntl, -            controllerAs: 'chapter' -          }); - -          // configure html5 to get links working on jsfiddle -          $locationProvider.html5Mode(true); +        angular.module('ngViewExample', ['ngRoute', 'ngAnimate'], +          function($routeProvider, $locationProvider) { +            $routeProvider.when('/Book/:bookId', { +              templateUrl: 'book.html', +              controller: BookCntl, +              controllerAs: 'book' +            }); +            $routeProvider.when('/Book/:bookId/ch/:chapterId', { +              templateUrl: 'chapter.html', +              controller: ChapterCntl, +              controllerAs: 'chapter' +            }); + +            // configure html5 to get links working on jsfiddle +            $locationProvider.html5Mode(true);          });          function MainCntl($route, $routeParams, $location) { @@ -238,7 +239,7 @@ function ngViewFactory(   $route,   $anchorScroll,   $compile,   $controller,              cleanupLastView();            }          } -      } +      };      }    };  } | 
