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 was archived by the owner on Apr 4, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
Warn for orderBy getting called function in template #46
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>
Activity