Call remote from Post component

master
Raymonzut 5 years ago
parent 3b22f15a45
commit 8cdc2f8767
No known key found for this signature in database
GPG Key ID: 97CF2D8BE2C69FC7
  1. 13
      client/src/views/Post.vue

@ -8,8 +8,21 @@
</template>
<script>
import { getPosts } from '../remote'
export default {
name: "Post",
data() {
return {
post: {},
}
},
methods: {
getPosts
},
mounted() {
getPosts.call(this, this._props.id)
},
props: {
id: {
type: String,

Loading…
Cancel
Save