Pass data to a template using a ViewModel in Magento
Pass data to a Magento ViewModel template using layout XML arguments and block getData integration.
Lesson Content
We’ve created a view model, but now we need to get access to that ViewModel. We’ll do that by injecting it as an argument to the block using layout XML.
Within view/frontend/layout open the blog ...
Premium content
Enroll to unlock the full content and all course materials.
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.