aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2012-03-06 14:26:43 -0800
committerIgor Minar2012-03-08 11:06:14 -0800
commit7f6c1093f5691bee2fbddca63879d1660620bf2e (patch)
tree2645e0e0db47ff11df28e449c782908493b4ff03
parent1b4289ce769e1c32cde6e5b246c1a176b9ecf491 (diff)
downloadangular.js-7f6c1093f5691bee2fbddca63879d1660620bf2e.tar.bz2
docs(ng-view): improve the ng-view docs
-rw-r--r--src/widgets.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/widgets.js b/src/widgets.js
index 4ea0553b..d3b4083f 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -485,7 +485,7 @@ var ngNonBindableDirective = ngDirective({ terminal: true });
* Every time the current route changes, the included view changes with it according to the
* configuration of the `$route` service.
*
- *
+ * @scope
* @example
<doc:example module="ngView">
<doc:source>
@@ -502,8 +502,14 @@ var ngNonBindableDirective = ngDirective({ terminal: true });
<script>
angular.module('ngView', [], function($routeProvider, $locationProvider) {
- $routeProvider.when('/Book/:bookId', {template: 'examples/book.html', controller: BookCntl});
- $routeProvider.when('/Book/:bookId/ch/:chapterId', {template: 'examples/chapter.html', controller: ChapterCntl});
+ $routeProvider.when('/Book/:bookId', {
+ template: 'examples/book.html',
+ controller: BookCntl
+ });
+ $routeProvider.when('/Book/:bookId/ch/:chapterId', {
+ template: 'examples/chapter.html',
+ controller: ChapterCntl
+ });
// configure html5 to get links working on jsfiddle
$locationProvider.html5Mode(true);