mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-20 04:11:51 +00:00
docs($filter): minor corrections
This commit is contained in:
parent
1d388676e3
commit
15b8f205bb
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@
|
||||||
* function MyModule($provide, $filterProvider) {
|
* function MyModule($provide, $filterProvider) {
|
||||||
* // create a service to demonstrate injection (not always needed)
|
* // create a service to demonstrate injection (not always needed)
|
||||||
* $provide.value('greet', function(name){
|
* $provide.value('greet', function(name){
|
||||||
* return 'Hello ' + name + '!':
|
* return 'Hello ' + name + '!';
|
||||||
* });
|
* });
|
||||||
*
|
*
|
||||||
* // register a filter factory which uses the
|
* // register a filter factory which uses the
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
* // filters need to be forgiving so check input validity
|
* // filters need to be forgiving so check input validity
|
||||||
* return text && greet(text) || text;
|
* return text && greet(text) || text;
|
||||||
* };
|
* };
|
||||||
* };
|
* });
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue