looking for some solutions? You are welcome.

SOLVED: How can I get template html text

Enver Krynitski:

I know that knockout has method ko.renderTemplate() https://www.strathweb.com/2012/08/knockout-js-pro-tips-working-with-templates/

So I have next code:

var templateHtmlText = ko.renderTemplate('packageView', package[0])

but it returns "<!--[ko_memo:5c90e0726c7e506b]-->"

How can I get ready html code in variable with applied bindings?

Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots

No comments: