---
id: fast-element.htmldirective.createplaceholder
title: HTMLDirective.createPlaceholder() method
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; [createPlaceholder](./fast-element.htmldirective.createplaceholder.md)

## HTMLDirective.createPlaceholder() method

Creates a placeholder string based on the directive's index within the template.

<b>Signature:</b>

```typescript
abstract createPlaceholder(index: number): string;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  index | number | The index of the directive within the template. |

<b>Returns:</b>

string
