Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

129
Views
Using vue on it's own with npm does not have effect on html

I installed Vue 3 using npm install vue@next and wanted to use it in my App.

index.js

import { createApp } from 'vue';

const app = createApp({
    data() {
        return {
           name: 'World',
        }
    }
});

app.mount('#app');

index.html

<!-- Mounting Point -->
<div id="app">
    <h1>Hello {{ name }}</h1>
</div>
<script src="./index.js"></script>

Output when starting HTML file -> Hello {{ name }}

Expected Output -> Hello World

Question: Why does this not work?

Thank you all in advance!

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!