AUR0818

Error Message

AUR0818: "& signal" invalid usage. At least one signal name must be passed to the signal behavior, e.g. "expr & signal:'my-signal'"

Description

This error occurs when the & signal binding behavior is used in a binding expression without providing any signal names as arguments. The purpose of the signal behavior is to listen for specific named signals, so it requires at least one signal name to function correctly.

Cause

The sole cause of this error is using the signal binding behavior without specifying which signal(s) it should listen for.

Examples of incorrect usage:

  • ${myValue & signal}

  • value.bind="myProp & signal"

Solution

Provide one or more signal names as string arguments to the & signal binding behavior. Signal names are separated by colons (:).

Examples of correct usage:

  • ${myValue & signal:'my-signal-name'}

  • value.bind="myProp & signal:'signal-a':'signal-b'"

Example

Debugging Tips

  • Locate the binding expression using & signal in your template.

  • Ensure that you have added at least one colon-separated string literal after & signal representing the name(s) of the signal(s) to listen for.

  • Verify that the signal names are spelled correctly and match the names used when dispatching signals via ISignaler.dispatchSignal().

Last updated

Was this helpful?