NGXF
  • 🚀Introduction
  • Get Started
    • Why
    • Installation
  • Concepts
    • Introduction
  • Features
    • Activated Route
    • Call
    • Init
    • Lazy
    • Keep Alive
    • Timeout
    • Track By Key
    • Repeat
    • Virtual Scroll
  • Server Interaction
    • Async
    • Cookies
    • Http
    • Socket.IO
  • Hooks
    • State Hook
    • Effect Hook
    • Reducer Hook
  • Recompose
    • Compose
  • API
    • NgxfModule
    • HttpDirective
    • RouteDirective
    • InitDirective
    • ComposeDirective
    • ReturnDirective
    • TimeoutDirective
    • CookiesDirective
    • AsyncDirective
    • LazyDirective
    • CallPipe
  • Recipes
    • Caching
    • Style Guide
  • Community
    • FAQ
    • Contributing
Powered by GitBook
On this page
  • Selectors
  • Context
  • Properties
  • Example
  1. API

ComposeDirective

Selectors

[compose]

Context

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

Properties

Property

Description

@Input()

composeOf: TemplateRef<ComposedContext>[]

@Input()

composeUse: any

Example

<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>
PreviousInitDirectiveNextReturnDirective

Last updated 6 years ago

See more