From 9e46b1f9a00d7454f411b00ba90cbc4ada90f29a Mon Sep 17 00:00:00 2001 From: Justin Walsh Date: Fri, 10 Oct 2014 12:21:56 +0200 Subject: [PATCH] doc(README.md): Update headings to be consistent with usage --- README.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 560c895..c6f0591 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ William 20 Clive 30 ``` -###filterby +###filterBy Filter a collection by a specific property.
**Usage:** ```collection | filterBy: [prop, nested.prop, etc..]: search```
**Note:** You can even use compound properties (e.g: ```|filterBy: [property + property]: model```)
@@ -360,7 +360,7 @@ $scope.books = [ {{ book.title }} ``` -###fuzzyby +###fuzzyBy fuzzy string searching(approximate string matching) by property(nested to). [Ream more](http://en.wikipedia.org/wiki/Approximate_string_matching)
usage: ```collection | fuzzyBy: 'property': search: caseSensitive[optional]``` ```js @@ -382,7 +382,7 @@ $scope.books = [ {{ book.title }} ``` -###groupby +###groupBy Create an object composed of keys generated from the result of running each element of a collection,
each key is an array of the elements.
**usage:** ```(key, value) in collection | groupBy: 'property'``` or ```... | groupBy: 'nested.property'``` @@ -412,7 +412,7 @@ $scope.players = [ * player: Steve * player: Scruath ``` -###countby +###countBy Create an object composed of keys generated from the result of running each element of a collection,
each key is the count of objects in each group
**usage:** ```(key, value) in collection | countBy: 'property'``` or ```... | countBy: 'nested.property'``` @@ -541,7 +541,7 @@ $scope.collection = [ ``` -###reverse collection +###reverse Reverse the order of the elements in a collection ```js @@ -694,7 +694,7 @@ $scope.users = [ --> ``` -###isempty +###isEmpty get collection or string and return if it empty[Bollean] ```html @@ -790,7 +790,7 @@ $scope.users2 = [ ``` -###uriencode +###uriEncode get string as parameter and return encoded uri ```html @@ -870,7 +870,7 @@ result: Link --> ``` -###startswith +###startsWith return whether string starts with the starts parameter.
usage: ```string | startsWith: 'start': case-sensitive[optional]```
```html @@ -880,7 +880,7 @@ usage: ```string | startsWith: 'start': case-sensitive[optional]```
true false ``` -###endswith +###endsWith return whether string ends with the ends parameter.
usage: ```string | endsWith: 'ends': case-sensitive[optional]```
```html @@ -890,7 +890,7 @@ usage: ```string | endsWith: 'ends': case-sensitive[optional]```
true false ``` -###striptags +###stripTags strip out html tags from string
**Important: this filter jobs it's not to replace ng-bind-html directive, it's only for tiny plain text @@ -939,7 +939,7 @@ lorem ipsum... lorem ipsum d... lorem ipsum dolor sit amet ``` -###reverse string +###reverse Reverses a string ```js $scope.text = 'lorem ipsum dolor sit amet'; @@ -1069,7 +1069,7 @@ Converts degrees into radians
0.79 3.14159 ``` -###shortfmt +###shortFmt Converts numbers into formatted display
**Usage:** ```number | shortFmt: round-to-decimal```, ```html @@ -1079,7 +1079,7 @@ Converts numbers into formatted display
45 k 18.2 m ``` -###bytefmt +###byteFmt Converts bytes into formatted display
**Usage:** ```number | byteFmt: round-to-decimal```, ```html @@ -1089,7 +1089,7 @@ Converts bytes into formatted display
1.95 KB 1.24726 GB ``` -###kbfmt +###kbFmt Converts kilobytes into formatted display
**Usage:** ```number | kbFmt: round-to-decimal```, ```html