質問編集履歴

1

誤字

2022/12/31 18:45

投稿

uaaa0348
uaaa0348

スコア2

test CHANGED
File without changes
test CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- Nuxt3でGoogle Places APIを用いて飲食店の名前を取得して<template>内に表示させたいですが、下記のresult_shop.value = resultの部分ではresult_shopにデータは取得できているのですが、最後のreturnで返している変数であるresult_shopが「not defined」になり、template内のv-forのresult_shopも空なので表示されません。
2
+ Nuxt3でGoogle Places APIを用いて飲食店の名前を取得して<template>内に表示させたいです下記のresult_shop.value = resultの部分ではresult_shopにデータは取得できているのですが、最後のreturnで返している変数であるresult_shopが「not defined」になり、template内のv-forのresult_shopも空なので表示されません。
3
3
  このif文の中のresult_shopにアクセスしてreturnでtemplateにデータを渡して表示させる方法をご教授いただければ幸いです。
4
4
 
5
5