0

I am working in Magento 2 static blocks. Inside the static block I want some content to be dynamic.

Is there any way to use knockout js in static block?

1 Answer 1

3

Yes. Knockout can be used inside Static Block. Insert the below code in a static block and save. On frontend page load you can see the text is updated using KO.

<div data-bind="text: 'Hello World'"></div> 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.