> For the complete documentation index, see [llms.txt](https://routeshub.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://routeshub.gitbook.io/docs/api/decorators.md).

# Decorators

## Secluded

A decorator that applies unit to the component's property by unit identifier or unit name.&#x20;

**Generic Type:**

```typescript
T = any
```

**Args:**

```typescript
(
  arg: privateNotesKey
)
```

�**Return Type:**

```typescript
(target: any, propertyKey: PropertyKey) => void
```

**Usage example:**

```typescript
....

@Component({
...
})
export class HeaderComponent {

  // getting unit by key
  @Secluded(APP_HUB_KEY)
  private app: Unit<AppNotes, AppChildNotes>;

  // getting unit by unit name
  @Secluded('about')
  private about: Unit<AboutNotes>;
}

```
