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

# ComposeDirective

## Selectors

`[compose]`

## Context

```typescript
interface ComposedContext {
    $implicit: any;
    templateRefs: TemplateRef<ComposedContext>[];
    [key: string]: any;
}
```

## Properties

| **Property**                                                                       | Description |
| ---------------------------------------------------------------------------------- | ----------- |
| <p>@Input()</p><p><strong>composeOf</strong>: TemplateRef\<ComposedContext>\[]</p> |             |
| <p>@Input()</p><p><strong>composeUse</strong>: any</p>                             |             |

## Example

```markup
<ng-template #pluck let-object>
    <ng-container *return="object.hello"></ng-container>
</ng-template>

<ng-container *compose="let hello of [ pluck ] use { hello: 'World!' }">
    {{ hello }} // World!
</ng-container>
```

[See more](/platform/recompose/compose.md)
