Magento Expert Forum - Improve your Magento experience
-
How to Use ViewModels in Magento 2
Hello, Community Members,
A view model should be used every time you have to pass data from storage or the other object to a template for rendering. It is majorly useful when you want to add some code in a template file without using object manager. Deep dive into How to Use ViewModels in Magento 2.
Read Full Article: https://magecomp.com/blog/viewmodels-magento-2/
View more threads in the same category:
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks