javascript - Incorrect syntax when filtering ng-options? -
i'm trying sort alphabetically 'long_name'. no avail. can't list change. missing something?
<select ng-model="client.primary_contact" ng-options="provider.long_name provider in providers | orderby:'provider.long_name' track provider.uid"></select>
i started here (angular docs on orderby).
you should provide property name orderby
filter. try this:
ng-options="provider.long_name provider in providers | orderby:'long_name' track provider.uid"
check documentation orderby
filter, expression argument.
Comments
Post a Comment