Execute code when loading a Knockout.js view model in Magento
Learn how to run custom code after a Knockout.js view model initializes while preserving its inherited initialization behavior.
Lesson Content
In Magento 2, we’ve successfully created a UI Component using XML, a view model in JavaScript, and a related .phtml template. Everything is working and loading correctly on our page. However, there ma...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.