Hey just a quick thing,
I tried to use a kendo.View fed by html containing kendo-template expressions:
I tried to use a kendo.View fed by html containing kendo-template expressions:
var viewModel = kendo.observable({
test: '123'
});
var
myFailedView =
new
kendo.View(
'<span data-bind="text: test"></span> #: location.href #'
, { model:viewModel, evalTemplate:
true
});
var mySucessfulView = new kendo.View('##<span data-bind="text: test"></span> #: location.href #', { model:viewModel, evalTemplate: true });
I would expect it to render a span with 123 followed by the current location of the browser. But it only renders the span. If I start with an empty template expression "##" it behaves as expected. Is that a bug or did I miss something in the documentation?
For reference see JsFiddle
Regards,
Kris
http://jsfiddle.net/9y36opsk/