12345678910111213141516171819202122 |
- <template>
- <div>
- <div>props tests</div>
- <Child :passToChild="passToChild" />
- </div>
- </template>
- <script>
- import Child from "./child";
- export default {
- name: "PropsTest",
- data() {
- return { passToChild: "Give to child " };
- },
- created() {
- setInterval(() => (this.passToChild = "Give to child " + Date.now()), 1000);
- },
- components: {
- Child,
- },
- };
- </script>
|