This question already has an answer here:

Can anyone tell how can we use knockout js within custom theme's phtml file with any simple example?

marked as duplicate by Keyul Shah, Murtuza Zabuawala, Rakesh Jesadiya, Siarhey Uchukhlebau, Khoa TruongDinh Feb 28 '17 at 14:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You can refer Magento's native mini cart portion to check usage of knockout JS. This is very simple example of knockout JS.

Not the answer you're looking for? Browse other questions tagged or ask your own question.