# AUR0158

## Error Message

`AUR0158: Expression error: left hand side of expression is not assignable: "{{expression}}"`

## Description

This error occurs when attempting to assign a value to something that cannot be assigned to, such as literals, function calls, or complex expressions.

## Common Scenarios

```html
<!-- ❌ Wrong: Cannot assign to literals -->
<input value.two-way="'literal string'">
<input value.two-way="42">

<!-- ❌ Wrong: Cannot assign to function calls -->
<input value.two-way="getValue()">

<!-- ❌ Wrong: Cannot assign to complex expressions -->
<input value.two-way="user.firstName + user.lastName">
```

## Solution

```html
<!-- ✅ Correct: Assign to properties -->
<input value.two-way="userInput">
<input value.two-way="user.name">
<input value.two-way="items[index]">

<!-- ✅ Correct: Use one-way binding for read-only values -->
<input value.bind="getValue()">
<div textcontent.bind="user.firstName + user.lastName">
```


---

# 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/aur0158.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.
