Pass data from phtml to javascript in Magento2

In this topic we describes different ways to pass data from phtml to javaScript in Magento 2 using Declarative Notation. Subscribe to Bethos for all the Magento2 problems and customizations. If you do not know about calling and initializing javascript, please refer Calling and initializing JavaScript in Magento2 blog to know about it. Types of … Read more