mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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 #4702
This commit is contained in:
parent
6e77f80827
commit
217feda041
1 changed files with 2 additions and 2 deletions
|
|
@ -264,7 +264,7 @@ function $RouteProvider(){
|
|||
Note that this example is using {@link ng.directive:script inlined templates}
|
||||
to get it working on jsfiddle as well.
|
||||
|
||||
<example module="ngView" deps="angular-route.js">
|
||||
<example module="ngViewExample" deps="angular-route.js">
|
||||
<file name="index.html">
|
||||
<div ng-controller="MainCntl">
|
||||
Choose:
|
||||
|
|
@ -297,7 +297,7 @@ function $RouteProvider(){
|
|||
</file>
|
||||
|
||||
<file name="script.js">
|
||||
angular.module('ngView', ['ngRoute']).config(function($routeProvider, $locationProvider) {
|
||||
angular.module('ngViewExample', ['ngRoute']).config(function($routeProvider, $locationProvider) {
|
||||
$routeProvider.when('/Book/:bookId', {
|
||||
templateUrl: 'book.html',
|
||||
controller: BookCntl,
|
||||
|
|
|
|||
Loading…
Reference in a new issue