Skip to content

Headers in http request #44

@aonnen

Description

@aonnen

Hi all,

It would be great to add headers in the http request
i need to add Authorization field

https://github.com/orizens/ngx-typeahead/blob/master/src/modules/ngx-typeahead.component.ts
line 260

  request(query: string) {
    const url = this.taUrl;
    const searchConfig = createParamsForQuery(
      query,
      this.taQueryParam,
      this.taParams
    );
    const options = {
      params: searchConfig
      **headers: this.taHeaders**
    };

Antoine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions