mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-22 01:10:23 +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 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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue