Web Analytics

Fill the form & Get Installation Support

How to get configuration settings values in web .html file in Magento 2?

In Magento 2, there are two types of template files. One is .phtml and second one is .html files under web/template directory.

In .phtml we easily get the config value, but it’s tricky to get config value in web template files which we are going to cover in this article.

You have to follow below steps :

Step 1 : Add below code to your web .js file:

Step 2 : Create controller

Add below code

Step 3 : Get config value as per below code in .html file.


Fill the below form if you have any Magento programming need.

    Recent Articles

    Author Info

    Author Image

    Magento Developer

    Hire S. Gorjia

    Get a Free Quote

      /* second popup */

      Connect With Us