Style attribute bind with a variable array

Hi All,
I’m desiging a menu with <ul><li> structure and images. Because i want my images to be customized i do not want to hardcode the url of the background images. So i try to bind the background-image attribute to an array loaded with server connect and and variable populated with toKeyedObject() function.
In the code example below:

How is the correct syntax for binding in this context ?

Thx.

Community Page
Last updated: