---
schema_version: "1"
id: 02390d5eaaf1c839db52058a6390298388457eb4dd81be4a4ca25d755678f4d9
title: getReference()
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-getreference.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-component-getreference.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3ba82763d95faa4434ecd7c4c541c98a5b3dda6f3ca6f92921d94b890178e01a
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# getReference()

Returns a live reference to the value indicated using property syntax. This method is useful when you dynamically create a component.

## Signature

`getReference(String key)`

## Parameters

**_key_:** Type: `String`. The data key for which to return a reference.

## Returns

**Type: `PropertyReferenceValue`** A property reference value.

