How to print a log with console log in knockout template in magento2 - Magento Source24

How to print a log with console log in knockout template in magento2


Hello Magento friends todays im share with you to How to print a log with console log in knockout template in magento2

➤ At a development stage, Knockout JS will publish a log message to the console. By using the console, you can trace or log any item.

➤  register the knockout JS template.

➤  With the provided syntax, you can log messages : 



<div data-bind="text: console.log(' My Log:', $data)"></div>


Friends Here You will data in the Browser console when you reload the cureent page.


 the text data-bind attribute in log with console log in knockout .




Deepak Kumar Bind

Success is peace of mind, which is a direct result of self-satisfaction in knowing you made the effort to become the best of which you are capable.

Post a Comment

If you liked this post please do not forget to leave a comment. Thanks

Previous Post Next Post