Put in order · Vue.js course · Module 11: Pinia
Getter Definition
Arrange the elements to define a getter in a Pinia store
Items to put in order
- computed(() =>
- )
- items.value.reduce((s, i) => s + i.qty, 0)
- const totalItems =
You can check the correct answer by solving this task in the CodeWorlds game.