Refactor a Knockout.js computed function to an external model in Magento
Learn how to refactor computed functions into reusable model properties for easier access across components.
Lesson Content
Our computed function is working great by using reduce() to loop over the box configurations and aggregating them into a total. However, it’s currently defined in the initialize() constructor, whi...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.