---
id: fast-element.targetedhtmldirective.targetname
title: TargetedHTMLDirective.targetName property
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [TargetedHTMLDirective](./fast-element.targetedhtmldirective.md) &gt; [targetName](./fast-element.targetedhtmldirective.targetname.md)

## TargetedHTMLDirective.targetName property

Gets/sets the name of the attribute or property that this directive is targeting on the associated node.

<b>Signature:</b>

```typescript
abstract targetName: string | undefined;
```