---
id: fast-element.htmldirective.targetindex
title: HTMLDirective.targetIndex property
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [HTMLDirective](./fast-element.htmldirective.md) &gt; [targetIndex](./fast-element.htmldirective.targetindex.md)

## HTMLDirective.targetIndex property

The index of the DOM node to which the created behavior will apply.

<b>Signature:</b>

```typescript
targetIndex: number;
```