Rendering data on the page
We've just created a Vue instance and mounted it to the page, so let's now get it to actually modify our page somehow.
One of the most basic things that Vue can do is render JavaScript data, so let's get it to do that.
See on our page here that we've got a value for the total of all the cart contents. Currently, that value is hardcoded in the page. Let's instead replace this with dynamic JavaScript data.
Click to load comments...