You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
I've seen apps that don't realize that orderBy is supposed to be given a reference to a getter function, rather than calling the function directly. But there are advanced cases where assigning the result of a function to orderBy is warranted, so a little "are you sure?" nudge would be helpful.
Bad:
<ling-repeat="item in items | orderBy:getItemLabel()"></li>
Good:
<ling-repeat="item in items | orderBy:getItemLabel"></li>
Acceptable Advanced Usage:
<ling-repeat="item in items | orderBy:getSortPropertyName()"></li>
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've seen apps that don't realize that
orderBy
is supposed to be given a reference to a getter function, rather than calling the function directly. But there are advanced cases where assigning the result of a function to orderBy is warranted, so a little "are you sure?" nudge would be helpful.Bad:
Good:
Acceptable Advanced Usage:
The text was updated successfully, but these errors were encountered: