Skip to content

Commit

Permalink
Highlight target meta decorator feature
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Feb 2, 2024
1 parent 70da6aa commit 6afbfaf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/archive/current/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@ _TBD: "To be decided"._

## `v0.x` Highlights

### "Target" Meta Decorator <Badge type="tip" text="Available since v0.7" />

Associate arbitrary metadata directly with the target element that is being decorated.
_See [target meta decorator](./packages/support/meta.md) fro additional details._

```js
import {targetMeta, getTargetMeta} from '@aedart/support/meta';

class Service {

@targetMeta('desc', 'Seaches for cities')
search() {
// ...not shown...
}
}

const instance = new Service();

// ...later in your application...
getTargetMeta(instance.search, 'desc'); // Seaches for cities
```

### Meta Decorator <Badge type="tip" text="Available since v0.6" />

The [meta decorator](./packages/support/meta.md) is able to associate arbitrary metadata with a class and its elements.
Expand Down

0 comments on commit 6afbfaf

Please sign in to comment.