🧠
ngx-crud
  • Introduction
  • API
    • HTTP Operations
    • HTTP Aborting
    • HTTP Caching
    • HTTP Observing
    • HTTP Options
    • HTTP Context
    • HTTP Headers
    • HTTP Params
    • Service Instance
    • Service Options
  • Reference
    • Modules
      • AbortModule
      • CacheModule
      • ObserveModule
      • CrudModule
    • Services
      • AbortService
      • CacheService
      • CommonService
      • CrudService
      • CustomService
      • DeleteService
      • FindService
      • GetService
      • ObserveService
      • PatchService
      • PostService
      • PutService
    • Interceptors
      • AbortInterceptor
      • CacheInterceptor
      • ObserveInterceptor
    • Decorators
      • @ApiUrl
      • @ApiRoute
    • Helpers
      • createUrl
      • createUrlWithId
      • stripUrlParams
  • Examples
    • Services
      • Fully Typed Collection
      • Limited Singleton
    • Components
      • Loader
    • Effects
      • ProfilerEffect
      • ErrorEffect
      • OfflineEffect
  • Links
    • GitHub
Powered by GitBook
On this page
  • Get
  • Set
  • Append
  • Clear
  1. API

HTTP Params

Get

Get a single parameter of the service:

crudService.getParam(name : string) : string

Get the parameters instance of the service:

crudService.getParams() : HttpParams

Get values for a single parameter of the service:

crudService.getParamArray(name : string) : string[]

Set

Set a single parameter of the service:

crudService.setParam(name : string, value : string) : this

Set the parameters instance of the service:

crudService.setParams(params : HttpParams) : this

Set values for a single parameter of the service:

crudService.setParamArray(name : string, valueArray : string[]) : this

Append

Append a single parameter to the service:

crudService.appendParam(name : string, value : string) : this

Append values to a single parameter of the service:

crudService.appendParamArray(name : string, valueArray : string) : this

Clear

Clear a single parameter of the service:

crudService.clearParam(name : string) : this

Clear the parameters instance of the service:

crudService.clearParams() : this
PreviousHTTP HeadersNextService Instance

Last updated 3 years ago