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.
hi
i want the ngautocomplete to sent a custom httpheader while calling the api but it doesnt send the added header, here is the code i use:
public dataService: RemoteData;
constructor(private completerService: CompleterService) {
this.dataService = completerService.remote(
some url
, 'label', 'label');let options = new RequestOptions({ headers: new Headers() });
options.headers.set('api-key', 'some credentials');
this.dataService.requestOptions(options);
}
<ng2-completer [(ngModel)]="partTerm"
[ngModelOptions]="{standalone: true}"
[datasource]="dataService"
[clearUnselected]="true"
[inputClass]="'form-control'"
[placeholder]="'search by term'"
[minSearchLength]="2"
[pause]="500"
(selected)="selected($event)">
i'll appreciate it
The text was updated successfully, but these errors were encountered: