I am currently facing an issue with populating options on a p-multiSelect
element.
The HTML code in question is:
<p-multiSelect
name="ambits"
[options]="scopes$ | async">
</p-multiSelect>
The variable scopes$
is defined as follows:
public scopes$: Observable<Array<ApplicationScope>>;
constructor(
private service: AplicacionsSubcomponentService
) {
this.scopes$ = service.getScopes()
.pipe((take(1)));
}
However, despite setting up the
Observable<Array<ApplicationScope>>
subscription using async
, my multiselect options remain empty.
Any suggestions on how to resolve this issue?