Magento 2 Certification Questions List | Add viewModel to the block

What steps you should perform for adding viewModel to the block.(choose 2)

Answer:
  • Add via Layout
  • Create class that implements MagentoFrameworkViewElementBlockArgumentInterface
Prepear for Magento 2 certefication with our interactive quiz