I have used live binding in a similar way before, but this time it is not working.
I load an ejs file with only:
I load an ejs file with only:
- <%= this.myData.attr('counter'); %>
I have an observable like this:
The template works (the first time).
If I change the Observe like this:
But I do not get an update in the template.
What could I be missing for the live binding?
Jochum.
- this.myData = new can.Observe({
- 'counter': 1,
- 'something': {ref: 'nothing'}
- });
- $('.myTemplateElements').html('simpletemplate.ejs', { myData: this.options.myData});
The template works (the first time).
If I change the Observe like this:
- this.myData.attr('counter', Math.random() );
But I do not get an update in the template.
What could I be missing for the live binding?
Jochum.