Create a basic Ajax request for a Knockout.js template in Magento
Learn how to make asynchronous API requests from a Knockout.js component and handle the returned response.
Lesson Content
Now that we have confirmed a call to the REST API can succeed, let’s see how to do it in Knockout.js with Ajax. We could use jQuery for this, but it’s better practice to import the mage/storage func...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.