Know when to use or avoid Knockout.js observables in Magento
Learn how to choose when Knockout.js observables are appropriate and when regular properties are sufficient.
Lesson Content
We want to add a placeholder to an <input> DOM element. To do this, let’s go back to our view model and create another property named placeholder. We will set this equal to the value “Example: 24-...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.