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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -