mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-28 15:28:15 +00:00
docs(ngRoute): make config block for the routeProvider example explicit
This commit is contained in:
parent
d1cdd4d026
commit
6d7ee1ad3b
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ function $RouteProvider(){
|
||||||
</file>
|
</file>
|
||||||
|
|
||||||
<file name="script.js">
|
<file name="script.js">
|
||||||
angular.module('ngView', ['ngRoute'], function($routeProvider, $locationProvider) {
|
angular.module('ngView', ['ngRoute']).config(function($routeProvider, $locationProvider) {
|
||||||
$routeProvider.when('/Book/:bookId', {
|
$routeProvider.when('/Book/:bookId', {
|
||||||
templateUrl: 'book.html',
|
templateUrl: 'book.html',
|
||||||
controller: BookCntl,
|
controller: BookCntl,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue