Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

HttpParamsOptions

Options used to construct an HttpParams instance.

      
      interface HttpParamsOptions {
  fromString?: string
  fromObject?: {...}
  encoder?: HttpParameterCodec
}
    

Properties

Property Description
fromString?: string

String representation of the HTTP parameters in URL-query-string format. Mutually exclusive with fromObject.

fromObject?: { [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>; }

Object map of the HTTP parameters. Mutually exclusive with fromString.

encoder?: HttpParameterCodec

Encoding codec used to parse and serialize the parameters.