---
schema_version: "1"
id: 1b2f36b37b530172423d7f32c9cc17790a1d8621aa6a8251ddc5efdb1eca9132
title: addValueProvider()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-component-addvalueprovider.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-component-addvalueprovider.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1aab37dfff9cd12e5f9d7ed67c91bcff1728ed80eeaa0d3a6d7ef96ef82c9243
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# addValueProvider()

Adds custom value providers to a component.

## Signature

`addValueProvider(String key, Object valueProvider)`

## Parameters

**_key_:** Type: `String`. Key to identify the value provider. Used in expressions in markup.

**_valueProvider_:** Type: `Object`. The object to request data from. Must implement `get(expression)`, can implement `set(key,value)`.

**See Also**  


-   [Value Providers](https://developer.salesforce.com/docs/platform/aura-platform/expr/expr-source.md)

