VueJS lekcja 1
This commit is contained in:
1 parent
11eb98f6b7
commit
e66b5ebc22
602 files changed
+63992
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Start VueJS</title>
|
||||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<a :href="onet_url">ONET</a>
|
||||
<img :src="img_src" :width="img_width" :height="img_height">
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
|
||||
const app = Vue.createApp({
|
||||
data() {
|
||||
return {
|
||||
onet_url: "https://onet.pl",
|
||||
img_width: 200,
|
||||
img_height: 100,
|
||||
img_src: "/google.svg"
|
||||
}
|
||||
}
|
||||
}).mount("#app");
|
||||
|
||||
app.title += ' ';
|
||||
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Reference in new issue
Block a user