Trying to implement my first Signalable Value Converter


#1

Using the documentation here I’m trying to implement a Signalable Value Converter.

My situation is that I’m asynchronously loading Vendors and their ShipZones via API calls. ShipZones are loaded after Vendors and filtered into the matching Vendor.

On my page I want to only display Vendors that have ShipZones. Since ShipZones will be added “sometime after” Vendors exist, it seemed to me a Signalable Value Converter was the way to go in order to have the repeat.for reevaluate when ShipZones are added to a Vendor.

Unfortunately, based on the documentation, I can’t seem to figure what code is executed to “fire” the trigger.

Any help would be greatly appreciated. Thanks!


#2

Did you try

import {signalBindings} from 'aurelia-framework';

signalBindings('locale-changed');

#3

I did, but now that I’ve had some sleep, I realize I wasn’t doing so in the appropriate place. Thanks!


#4

less is more, except sleep