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 Oct 13, 2023. It is now read-only.
I use ng2-completer with an array of objects with many properties, so I used completerService titleFields parameter to display it properly.
I want to use the 1st element of my array as default value, so I used ngModel.
But, the value isn't displayed correctly, my object is stringify and display as a string, the titleFields parameter of the completerService is apparently ignored with ngModel.
I know I could do [(ngModel)]="searchStr.color" instead of [(ngModel)]="searchStr" but I have more complicated cases where I would appreciate NgModel works properly with titleFields parameter
Any way to make it works properly ?
Thank you
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 use ng2-completer with an array of objects with many properties, so I used completerService titleFields parameter to display it properly.
I want to use the 1st element of my array as default value, so I used ngModel.
But, the value isn't displayed correctly, my object is stringify and display as a string, the titleFields parameter of the completerService is apparently ignored with ngModel.
Stackblitz with the problem
I know I could do
[(ngModel)]="searchStr.color"
instead of[(ngModel)]="searchStr"
but I have more complicated cases where I would appreciate NgModel works properly with titleFields parameterAny way to make it works properly ?
Thank you
The text was updated successfully, but these errors were encountered: