kl-test-data
v0.1.6
Published
Component, showing TestData
Downloads
3
Readme
kl-test-data
Package install
npm i kl-test-data
Usage in Vue.js
main.js
import KlTestData from "kl-test-data";
import "kl-test-data/lib/klTestData.css";
Vue.use(KlTestData);
component
<kl-test-data :id="id" :domain="domain" />
Usage in static HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="./klTestData.css">
</head>
<body>
<div id="container"></div>
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/vue.js"></script>
<script type="text/javascript" src="./klTestData.umd.js"></script>
<script>
Vue.use(klTestData)
var app = new Vue({
el: '#container',
data() {
return {
id: 1,
domain: "https://localhost:55559"
};
},
template: '<kl-test-data :id="id" :domain="domain" />'
})
</script>
</body>
</html>