Adobe Commerce Front-End Developer Expert AD0-E720 Question # 28 Topic 2 Discussion

Adobe Commerce Front-End Developer Expert AD0-E720 Question # 28 Topic 2 Discussion

AD0-E720 Exam Topic 2 Question 28 Discussion:
Question #: 28
Topic #: 2

An Adobe Commerce developer is using a view model within an existing block:

AD0-E720 Question 28

What are two ways to access the view model class in the template? (Choose two.)


A.

$block->getData('view_model')


B.

$block->viewModel()


C.

$block->getViewHodel()


D.

$block->getData('viewModel)


Get Premium AD0-E720 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.