Put in order · Vue.js course · Module 6: Components

Using a composable in a component

Arrange the steps for using a composable in a component:

Items to put in order

  • const { data, loading } = useMarsData()
  • Use data/loading in the template
  • import { useMarsData } from './composables'

You can check the correct answer by solving this task in the CodeWorlds game.