質問編集履歴
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
Nuxt3でGoogle Places APIを用いて飲食店の名前を取得して<template>内に表示させたい
|
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
|
|