Using Angular Material autocomplete displayFn asynchronously
up vote
2
down vote
favorite
How can I return an Observable<string>
from Angular Material autocomplete displayFn
? It seems to only support returning a string
. Problem: my display value needs to be translated, and the translation service only returns an Observable<string>
.
angular angular-material observable
add a comment |
up vote
2
down vote
favorite
How can I return an Observable<string>
from Angular Material autocomplete displayFn
? It seems to only support returning a string
. Problem: my display value needs to be translated, and the translation service only returns an Observable<string>
.
angular angular-material observable
Do you have a Minimal Workable StackBlitz Sample that replicates the issue?
– SiddAjmera
Nov 9 at 16:55
github.com/angular/material2/issues/4863
– yurzui
Nov 9 at 17:00
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
How can I return an Observable<string>
from Angular Material autocomplete displayFn
? It seems to only support returning a string
. Problem: my display value needs to be translated, and the translation service only returns an Observable<string>
.
angular angular-material observable
How can I return an Observable<string>
from Angular Material autocomplete displayFn
? It seems to only support returning a string
. Problem: my display value needs to be translated, and the translation service only returns an Observable<string>
.
angular angular-material observable
angular angular-material observable
asked Nov 9 at 16:52
user5365075
394416
394416
Do you have a Minimal Workable StackBlitz Sample that replicates the issue?
– SiddAjmera
Nov 9 at 16:55
github.com/angular/material2/issues/4863
– yurzui
Nov 9 at 17:00
add a comment |
Do you have a Minimal Workable StackBlitz Sample that replicates the issue?
– SiddAjmera
Nov 9 at 16:55
github.com/angular/material2/issues/4863
– yurzui
Nov 9 at 17:00
Do you have a Minimal Workable StackBlitz Sample that replicates the issue?
– SiddAjmera
Nov 9 at 16:55
Do you have a Minimal Workable StackBlitz Sample that replicates the issue?
– SiddAjmera
Nov 9 at 16:55
github.com/angular/material2/issues/4863
– yurzui
Nov 9 at 17:00
github.com/angular/material2/issues/4863
– yurzui
Nov 9 at 17:00
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53230093%2fusing-angular-material-autocomplete-displayfn-asynchronously%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you have a Minimal Workable StackBlitz Sample that replicates the issue?
– SiddAjmera
Nov 9 at 16:55
github.com/angular/material2/issues/4863
– yurzui
Nov 9 at 17:00