Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6d7ee1a

Browse files
davemopkozlowski-opensource
authored andcommitted
docs(ngRoute): make config block for the routeProvider example explicit
1 parent d1cdd4d commit 6d7ee1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngRoute/route.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function $RouteProvider(){
220220
</file>
221221
222222
<file name="script.js">
223-
angular.module('ngView', ['ngRoute'], function($routeProvider, $locationProvider) {
223+
angular.module('ngView', ['ngRoute']).config(function($routeProvider, $locationProvider) {
224224
$routeProvider.when('/Book/:bookId', {
225225
templateUrl: 'book.html',
226226
controller: BookCntl,

0 commit comments

Comments
 (0)