Line drawing of a small moon orbiting around a planet with the words FAST next to it
Docs
3.x
  • 3.x
  • 2.x
  • 1.x
Home Community GitHub
  • Introduction
  • Getting Started
    • Quick Start
    • FASTElement
    • HTML Templates
    • CSS Templates
    • HTML Directives
  • Advanced Concepts
    • Dependency Injection
    • DOMPolicy and Trusted Types
    • Path Exports
    • Reactivity
    • Working with Custom Elements
    • Working without Decorators
  • Declarative HTML
    • Defining Elements
    • Writing f-templates
    • Overview
    • Server-Side Rendering
  • API Reference
    • @microsoft/fast-element
    • @microsoft/fast-element/context.js
    • @microsoft/fast-element/declarative.js
    • @microsoft/fast-element/di.js
  • Migration Guide
    • Core
    • Hydration and SSR
    • Declarative HTML
  • Community Contribution
    • Issue Management
    • Joining the community
    • Release Planning
    • Writing documentation
  • Integrations
  • Resources
    • Browser Support
    • Export Sizes
    • FAQ
    • Glossary
    • Why Web Components?

@microsoft/fast-element > ChildrenDirective

ChildrenDirective class

The runtime behavior for child node observation.

Signature:

export declare class ChildrenDirective extends NodeObservationDirective<ChildrenDirectiveOptions>

Extends: NodeObservationDirective<ChildrenDirectiveOptions>

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Creates an instance of ChildrenDirective.

Methods

Method

Modifiers

Description

disconnect(target)

Disconnects observation of the nodes.

getNodes(target)

Retrieves the raw nodes that should be assigned to the source property.

observe(target)

Begins observation of the nodes.

Docs
  • FAST Element
Community
  • Discord
Social
  • Blog
  • GitHub
  • Twitter
Legal
  • License
  • Privacy & cookies
  • Terms of use
  • Trademarks
© Microsoft 2025