# AUR0776

## Error Message

`AUR0776: Invalid [repeat] usage, found extraneous target "<target>"`

Where `<target>` is the property name that the `repeat` attribute was incorrectly bound to (e.g., `repeat.items`, `repeat.foo`).

## Description

This error occurs when you try to bind the `repeat` attribute to a target property other than `for`. The correct syntax is always `repeat.for`.

## Cause

The `repeat` template controller is designed to work specifically with the `for` property to receive the iteration expression (e.g., `item of items`, `i of count`). Binding `repeat` to any other property name (like `repeat.items`, `repeat.data`, etc.) is syntactically incorrect because the controller doesn't expect or handle targets other than `for`. The `Repeat` controller's constructor validates this during initialization.

## Solution

Ensure your repeat attribute binding uses the correct target property `for`.

Change any incorrect bindings like `repeat.items="..."` or `repeat.whatever="..."` to `repeat.for="..."`.

## Example

```html
<!-- Incorrect: Binding repeat to 'items' instead of 'for' -->
<div repeat.items="item of userList">${item.name}</div>

<!-- Incorrect: Binding repeat to 'list' instead of 'for' -->
<div repeat.list="product of products">${product.id}</div>

<!-- Correct: Using repeat.for -->
<div repeat.for="item of userList">${item.name}</div>

<!-- Correct: Using repeat.for -->
<div repeat.for="product of products">${product.id}</div>
```

## Debugging Tips

* Carefully examine the `repeat` attribute binding in your HTML template.
* Make sure it explicitly says `repeat.for`, not `repeat.<anything_else>`.
* Correct the target property name to `for`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aurelia.io/developer-guides/error-messages/runtime-html/aur0776.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
