diff options
| author | David Mosher | 2013-07-30 10:20:42 -0600 |
|---|---|---|
| committer | Pawel Kozlowski | 2013-08-07 21:59:01 +0200 |
| commit | 6d7ee1ad3b548fa0e3ebf13e008d7024b664813f (patch) | |
| tree | 142225c4103aa8ff9e1270d05beb64415ecd8414 | |
| parent | d1cdd4d026968993db9d0130390bb5138b942224 (diff) | |
| download | angular.js-6d7ee1ad3b548fa0e3ebf13e008d7024b664813f.tar.bz2 | |
docs(ngRoute): make config block for the routeProvider example explicit
| -rw-r--r-- | src/ngRoute/route.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngRoute/route.js b/src/ngRoute/route.js index 743897d6..82c6cf3b 100644 --- a/src/ngRoute/route.js +++ b/src/ngRoute/route.js @@ -220,7 +220,7 @@ function $RouteProvider(){ </file> <file name="script.js"> - angular.module('ngView', ['ngRoute'], function($routeProvider, $locationProvider) { + angular.module('ngView', ['ngRoute']).config(function($routeProvider, $locationProvider) { $routeProvider.when('/Book/:bookId', { templateUrl: 'book.html', controller: BookCntl, |
