mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 15:24:43 +00:00
doc(module) changed simpleApp to myApp in the Module page guide for consistency
This commit is contained in:
parent
f66836fee4
commit
2583e77cc7
1 changed files with 3 additions and 3 deletions
|
|
@ -27,15 +27,15 @@ Important things to notice:
|
||||||
* Notice the reference to the `myApp` module in the `<html ng-app="myApp">`, it is what
|
* Notice the reference to the `myApp` module in the `<html ng-app="myApp">`, it is what
|
||||||
bootstraps the app using your module.
|
bootstraps the app using your module.
|
||||||
|
|
||||||
<doc:example module='simpleApp'>
|
<doc:example module='myApp'>
|
||||||
<doc:source>
|
<doc:source>
|
||||||
<script>
|
<script>
|
||||||
// declare a module
|
// declare a module
|
||||||
var simpleAppModule = angular.module('simpleApp', []);
|
var simpleAppModule = angular.module('myApp', []);
|
||||||
|
|
||||||
// configure the module.
|
// configure the module.
|
||||||
// in this example we will create a greeting filter
|
// in this example we will create a greeting filter
|
||||||
simpleAppModule.filter('greet', function() {
|
myAppModule.filter('greet', function() {
|
||||||
return function(name) {
|
return function(name) {
|
||||||
return 'Hello, ' + name + '!';
|
return 'Hello, ' + name + '!';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue