Skip to content

Commit 94e67d5

Browse files
committed
docs(orderBy): Replace operator = with ===
Fix documentation error on line 20 incorrectly mentioning an assignment operator in a comparison operation. Code on line 235 uses strict comparison operator. Closes angular#11392
1 parent e5d1d65 commit 94e67d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/filter/orderBy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Can be one of:
1818
*
1919
* - `function`: Getter function. The result of this function will be sorted using the
20-
* `<`, `=`, `>` operator.
20+
* `<`, `===`, `>` operator.
2121
* - `string`: An Angular expression. The result of this expression is used to compare elements
2222
* (for example `name` to sort by a property called `name` or `name.substr(0, 3)` to sort by
2323
* 3 first characters of a property called `name`). The result of a constant expression

0 commit comments

Comments
 (0)