---
id: fast-element.htmlbindingdirective
title: HTMLBindingDirective class
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [HTMLBindingDirective](./fast-element.htmlbindingdirective.md)

## HTMLBindingDirective class

A directive that configures data binding to element content and attributes.

<b>Signature:</b>

```typescript
export declare class HTMLBindingDirective extends TargetedHTMLDirective 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(binding)](./fast-element.htmlbindingdirective._constructor_.md) |  | Creates an instance of BindingDirective. |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [binding](./fast-element.htmlbindingdirective.binding.md) |  | [Binding](./fast-element.binding.md) |  |
|  [targetName](./fast-element.htmlbindingdirective.targetname.md) |  | string \| undefined | Gets/sets the name of the attribute or property that this binding is targeting. |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [createBehavior(target)](./fast-element.htmlbindingdirective.createbehavior.md) |  | Creates the runtime BindingBehavior instance based on the configuration information stored in the BindingDirective. |
|  [targetAtContent()](./fast-element.htmlbindingdirective.targetatcontent.md) |  | Makes this binding target the content of an element rather than a particular attribute or property. |
