# AUR0161

## Error Message

`AUR0161: Expression error: unexpected keyword "of": "{{expression}}"`

## Description

This error occurs when the keyword `of` appears where the expression parser does not expect it. `of` is used in Aurelia template syntax such as `repeat.for="item of items"`, but it is not a general-purpose operator inside all expressions.

## Example Trigger

```html
<!-- ❌ "of" used outside repeat.for -->
<div textcontent.bind="item of items"></div>
```

## Solution

* Use `repeat.for` for iteration.

```html
<!-- ✅ -->
<div repeat.for="item of items">${item}</div>
```

## Troubleshooting

* Check for accidental copy/paste of `repeat.for` syntax into a normal binding.


---

# 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/0151-to-0179/aur0161.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.
