Posts

Showing posts from December 6, 2018

How to define data in Html with Vue.js?

Image
up vote -1 down vote favorite I use pseudo-data(fake data) in html to test the function, but how to define the data in vue.js ? I would like to get data(not json) from back-end python app , I don't know how to define and replace those pseudo-data with real data, thank you so much for any advice and help. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Desktop</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css" scoped> .drag-box{ display: flex; user-select: none; /*width: 980px;*/ } .drag-box-item { flex: 1;