v-for="item in cAgents" :key="item.name">
                  
                  
                        Country: {{ item.name }}<br>
                  
                  
                        Capital: {{ item.type }}
                  
                  
                      </p>
                  
                  
                  
                  
                  
                  data() {
                  
                  
                      return {
                  
                  
                        cAgents: []
                  
                  
                      }
                  
                  
                    },
                  
                  
                    created() {
                  
                  
                      this.getCountry()
                  
                  
                    },
                  
                  
                    methods: {
                  
                  
                      async getCountry() {
                  
                  
                        const querySnap = await getDocs(query(collection(db, 'counteragents')));
                  
                  
                        querySnap.forEach((doc) => {
                  
                  
                          this.cAgents.push(doc.data())
                  
                  
                        })
                  
                  
                      }
                  
                  
                
Какая версия вью
Обсуждают сегодня