Create a ViewModel in Magento
Learn how to create a Magento ViewModel to provide data and logic for templates.
Lesson Content
Looking at our compare.phtml template file, we have some data to retrieve:
view/frontend/templates/compare.phtml
```...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.