<html>
<head>
<script type="importmap">
{
"imports": {
"vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.js"
}
}
</script>
<body>
<div id="app">
<h2>Vue js String toLowerCase Method </h2>
<p>Convert string to lower case in Vue Js</p>
<button @click="myFunction">click me</button>
<p>Text: {{text}}</p>
<p>Lower Case :{{results}}</p>
</div>
<script type="module">
import { createApp } from 'vue'
createApp({
data()
{
return{
text :'FONTAWESOMEICONS',
results:''
}
},
methods:{
myFunction(){
this.results = this.text.toLowerCase();
},
}
}).mount('#app')
</script>
</body>
</head>
</html>