ClickCease

Fill the form & Get Installation Support





    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

      Hire B. Darji

      Get a Free Quote





        Close

        mage Monkeys

        Let’s initiate a discussion!!

        Book a call

        Let our Magento expert connect to discuss your requirement.


          We offer Magento
          certified developers.

          Our Magento clientele
          is 500+.

          We sign NDA for the
          security of your projects.

          We’ve performed 100+
          Magento migration projects.

          Free quotation
          on your project.

          Three months warranty on
          code developed by us.