我看了一段视频,了解如何使用事件总线在兄弟姐妹之间进行通信,视频中有一位家长将一些数据作为支柱发送给孩子,然后一个孩子中的一个修改了该道具,并使用事件总线将其发送给另一个孩子。
我想,道具有什么意义?为什么我不能直接用兄弟姐妹自己的数据呢?我就是这样做的:
main.js
import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false
export const bus = new Vue() //Event Bus
new Vue({
render:
我有下面的代码。
main.js
new Vue({
el: '#app',
template: '<App/>',
components: { App }
})
App.vue
<template>
<div id="app">
// this does not pass the data to the component
<basics :resume="resume"></basics>
<education :resu
我目前正在与拉拉维尔火花,我正在慢慢学习的Vue.js系统。
我想在一个从AWS DynamoDB中提取的表中显示一堆数据。我正在以各种方式成功地解析这些数据,并且可以在标准的静态引导表中显示数据。我现在正在尝试使用Vue.js版本,在我的一生中,我根本无法将这些数据显示出来。如果我将虚拟数据插入Vue组件中,则虚拟数据将显示出来,因此它必须是我传递数据的方式。
我的代码如下:
TableController.php
public function show()
{
$data = $this->fetchAWSData($condition); // This is my