screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html> <head> <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> </head> <body> <h4>Vue.js Convert Radian into Degree</h4> <div id="app"> <label for="input-radians">Enter radians:</label> <input type="number" id="input-radians" v-model.number="radians"> <p>{{ radians }} radians is equivalent to {{ degrees }} degrees.</p> </div> <script type="module"> const app = Vue.createApp({ data() { return { radians: 1 } }, computed: { degrees() { return this.radians * (180 / Math.PI); } } }); app.mount('#app'); </script> </body> </html>