I have an instance where I need it to autocomplete different options depending on another input. When this value is updated, nothing changes in the completer, it always holds on to whatever list it hits first.
For instance:
<ng2-completer [datasource]="propertyOptions[trigger.Property]" [minSearchLength]="1" [openOnFocus]="true" placeholder="Enter value" [(ngModel)]="trigger.Value"></ng2-completer>
Where propertyOptions is { [key: string]: Array<string>; }:
I have an instance where I need it to autocomplete different options depending on another input. When this value is updated, nothing changes in the completer, it always holds on to whatever list it hits first.
For instance:
<ng2-completer [datasource]="propertyOptions[trigger.Property]" [minSearchLength]="1" [openOnFocus]="true" placeholder="Enter value" [(ngModel)]="trigger.Value"></ng2-completer>
Where propertyOptions is
{ [key: string]: Array<string>; }
:trigger.Property
is in an [(ngModel)] on a select.