Create a ViewModel in Magento
Learn how to create reusable Magento ViewModels that provide data to templates without relying on custom block classes.
Lesson Content
Going back to this default Template block class in the Magento Framework, Magento recommends that you use ViewModels instead of custom block classes from now on. And there are good reasons for this;...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.