Skip to content

Small example of how to use ViewModel instead of overriding Template

Notifications You must be signed in to change notification settings

nialltiernan/Magento2-ViewModelExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento2-ViewModelExample

Small example of how to use ViewModel in for blocks. Done following this tutorial.

Install

Place this in app/code/Niall and run bin/magento setup:upgrade

How to use

Shows up on the default CMS homepage, but can be placed anywhere via the layouts.

About

Small example of how to use ViewModel instead of overriding Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published