cancel
Showing results for 
Search instead for 
Did you mean: 

Call Block Function using Knockout js in magento 2

Call Block Function using Knockout js in magento 2

I need to call a function, that is written in block, but I need to call on every time the page loads.

Problem:

What Issue I am facing now is, I can call a function written in the block, but it was called only once, after refreshing the page or reloading, the same function was not called. Anyone has an idea, if so , please share it.

How do we achieve this via Knockout js or any other method?