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

[@microsoft/fast-element](./fast-element.md) &gt; [RepeatBehavior](./fast-element.repeatbehavior.md)

## RepeatBehavior class

A behavior that renders a template for each item in an array.

<b>Signature:</b>

```typescript
export declare class RepeatBehavior<TSource = any> implements Behavior, Subscriber 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(location, itemsBinding, isItemsBindingVolatile, templateBinding, isTemplateBindingVolatile, options)](./fast-element.repeatbehavior._constructor_.md) |  | Creates an instance of RepeatBehavior. |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [bind(source, context)](./fast-element.repeatbehavior.bind.md) |  | Bind this behavior to the source. |
|  [unbind()](./fast-element.repeatbehavior.unbind.md) |  | Unbinds this behavior from the source. |
