Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Clarified code sample in UI Registry topic #8167

Merged
merged 1 commit into from
Nov 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/guides/v2.3/ui_comp_guide/concepts/ui_comp_uiregistry.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ var registry = require('uiRegistry');
Now we have `uiRegistry` instance in the `registry` variable. We can use it to get an instance of any component.

```js
var component = registry.get('%componentName%');
var component = registry.get('componentName');
```

The `uiRegistry` instance allows you to search for components using property values.
If you know a unique property value of a component that you need to find, you can use the following code to get the component:

```js
var component = registry.get('%property% = %propertyValue%');
var component = registry.get('property = propertyValue');
```

**Examples:**
Expand Down