Vue JS 3 Tutorial for Beginners #9 - Fetching Data

↔️ ↕️


now so far in all of our view

applications we've declared any and all

data inside

the components themselves right here

like this

now more often than not when we create

websites that data will be stored

somewhere else instead

like in a database and we normally have

to fetch that data from an

api endpoint or something like that so

in this small chapter i just want to

show you how we can fetch

external data from inside a view

component now to begin with we won't be

working with a database

because i don't want to introduce too

many concepts at one time

so instead we'll use a package called

json server to simulate an api

that we can make requests to so json

Related queries:

how to get data from api in vue js
vue fetch data from api example
fetch api javascript get example
fetch vs get api
how to fetch an api in javascript