Skip to content

Commit 7f6c109

Browse files
committed
docs(ng-view): improve the ng-view docs
1 parent 1b4289c commit 7f6c109

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/widgets.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ var ngNonBindableDirective = ngDirective({ terminal: true });
485485
* Every time the current route changes, the included view changes with it according to the
486486
* configuration of the `$route` service.
487487
*
488-
*
488+
* @scope
489489
* @example
490490
<doc:example module="ngView">
491491
<doc:source>
@@ -502,8 +502,14 @@ var ngNonBindableDirective = ngDirective({ terminal: true });
502502
503503
<script>
504504
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+
});
507513
508514
// configure html5 to get links working on jsfiddle
509515
$locationProvider.html5Mode(true);

0 commit comments

Comments
 (0)