Answers for "view model in magento 2"

1

view model in magento 2

<block class="Magento\Framework\View\Element\Template" name="dummy">
    <arguments>
        <argument name="view_model" xsi:type="object">Yireo\Example\ViewModel\Dummy</argument>
    </arguments>
</block>
Posted by: Guest on May-08-2020

Browse Popular Code Answers by Language