mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-05 13:44:42 +00:00
docs($route): split over-length line
This commit is contained in:
parent
e53e2c2d58
commit
627f9ba091
1 changed files with 3 additions and 1 deletions
|
|
@ -297,7 +297,9 @@ function $RouteProvider(){
|
||||||
</file>
|
</file>
|
||||||
|
|
||||||
<file name="script.js">
|
<file name="script.js">
|
||||||
angular.module('ngViewExample', ['ngRoute']).config(function($routeProvider, $locationProvider) {
|
angular.module('ngViewExample', ['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