I am binding data to a template using knockout. The first template binds correctly, showing the image and other data elements correctly, however I get the following error and it does not bind to other templates after the first one.
Message: Unable to process binding "attr: function(){return {src:imageUrl} }"
Message: imageUrl is not defined
Here is the relevant part of the template:
<a href="#">
<img data-bind="attr:{src: imageUrl}" width="263" height="262" alt="image description">
</a>
Here is how I call it:
<div class="panel-body" data-bind="template: {name: 'album-template', data: thisWeeksOne() }"></div>
This is an example of thisWeeksOne
I believe that this is a timing issue, but am not sure how to handle it. Does anyone have experience with this?
