Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const app = new Vue({
- el: '#app',
- data : {
- posts : []
- },
- created() {
- fetch('https://jsonplaceholder.typicode.com/posts')
- .then(response => response.json())
- .then(json => {
- this.posts = json
- })
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement