Skip to content

Commit

Permalink
Add description of how the targetMeta() decorator works behind the scene
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Feb 2, 2024
1 parent b850b7c commit 70da6aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/archive/current/packages/support/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ then this decorator will be updated respectfully to use the available metadata o
The `targetMeta()` decorator offers the ability to associate metadata directly with a class instance or class method reference.
This can be useful in situations when you do not know the class that owns the metadata.

Behind the scene, `targetMeta()` uses the `meta()` decorator and stores a reference to the target that is decorated inside a [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap).

::: tip Supported Elements

Unlike the [`meta()` decorator](#supported-elements), `targetMeta()` only supports the following elements:
Expand Down

0 comments on commit 70da6aa

Please sign in to comment.