Skip to content

Commit 217feda

Browse files
amjpetebacondarwin
authored andcommitted
docs($route): change example module name
The name of the example module is `ngView`, which might cause needless confusion. Changed name to `ngViewExample`, which should make it clearer. Closes angular#4702
1 parent 6e77f80 commit 217feda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngRoute/route.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function $RouteProvider(){
264264
Note that this example is using {@link ng.directive:script inlined templates}
265265
to get it working on jsfiddle as well.
266266
267-
<example module="ngView" deps="angular-route.js">
267+
<example module="ngViewExample" deps="angular-route.js">
268268
<file name="index.html">
269269
<div ng-controller="MainCntl">
270270
Choose:
@@ -297,7 +297,7 @@ function $RouteProvider(){
297297
</file>
298298
299299
<file name="script.js">
300-
angular.module('ngView', ['ngRoute']).config(function($routeProvider, $locationProvider) {
300+
angular.module('ngViewExample', ['ngRoute']).config(function($routeProvider, $locationProvider) {
301301
$routeProvider.when('/Book/:bookId', {
302302
templateUrl: 'book.html',
303303
controller: BookCntl,

0 commit comments

Comments
 (0)