Vue JS 3 Environment Setup
Vue js 3 Environment Setup:-
<script src="https://unpkg.com/vue@next"></script> //eita html file e link korlei vue js niye kaj kora jabe.
..............
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> //index.html file er code
<title>vue js 3</title>
<link rel="stylesheet" href="style.css">
<script src="https://unpkg.com/vue@next"></script>
</head>
<body>
<div id="app">
{{msg}}
</div>
<script src="app.js"></script>
</body>
</html>
.............................
//app.js er code
var app = Vue.createApp({
data(){
return{
msg: 'welcome to vue js 3', //app.js er code
};
}
});
app.mount('#app');
............................
output: welcome to vue js 3
No comments