File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ var ngNonBindableDirective = ngDirective({ terminal: true });
485
485
* Every time the current route changes, the included view changes with it according to the
486
486
* configuration of the `$route` service.
487
487
*
488
- *
488
+ * @scope
489
489
* @example
490
490
<doc:example module="ngView">
491
491
<doc:source>
@@ -502,8 +502,14 @@ var ngNonBindableDirective = ngDirective({ terminal: true });
502
502
503
503
<script>
504
504
angular.module('ngView', [], function($routeProvider, $locationProvider) {
505
- $routeProvider.when('/Book/:bookId', {template: 'examples/book.html', controller: BookCntl});
506
- $routeProvider.when('/Book/:bookId/ch/:chapterId', {template: 'examples/chapter.html', controller: ChapterCntl});
505
+ $routeProvider.when('/Book/:bookId', {
506
+ template: 'examples/book.html',
507
+ controller: BookCntl
508
+ });
509
+ $routeProvider.when('/Book/:bookId/ch/:chapterId', {
510
+ template: 'examples/chapter.html',
511
+ controller: ChapterCntl
512
+ });
507
513
508
514
// configure html5 to get links working on jsfiddle
509
515
$locationProvider.html5Mode(true);
You can’t perform that action at this time.
0 commit comments