[Solved] BindingSignaler

Does the BindingSignaler still exist in Aurelia 2?

this.signaler.signal('xy');
<div>${functionCall() & signal:'xy'}</div>

What’s the recommendation for advanced/complex update scenarios? Should we use the new watch() decorator instead?

Thanks for any help.

Hi @elitastic! You need to use the ISignaler instead. Here is one example from the docs:

import { Signals } from '@aurelia/i18n';
import { ISignaler } from 'aurelia';

export class MyDemoVm {

  constructor(@ISignaler private readonly signaler: ISignaler) {}

  public changeRelativeTimeFormat() {
    this.signaler.dispatchSignal(Signals.RT_SIGNAL); // the signal 'aurelia-relativetime-signal' is exposed by Signals.RT_SIGNAL
  }
}
1 Like

That’s great, thanks for your help!

1 Like