Click in order · Vue.js course · Module 11: Pinia
Parameterized Getter
Arrange the elements to create a getter with a parameter
Items to click
- )
- const getByCategory = computed(() =>
- (category) =>
- items.value.filter(i => i.category === category)
You can check the correct answer by solving this task in the CodeWorlds game.