Skip to main content
Version: 2.x

HostController.addBehavior() method

@microsoft/fast-element > HostController > addBehavior

HostController.addBehavior() method

Adds the behavior to the component.

Signature:

addBehavior(behavior: HostBehavior<TSource>): void;

Parameters

Parameter

Type

Description

behavior

HostBehavior<TSource>

The behavior to add.

Returns:

void