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

111
Views
Starting with Vue.js and nothing is displayed

I am trying to start using vue.js and having issue setting it up. In my package.json I installed the latest version "vue": "^2.6.14", and in my main.js folder I included like this

import Vue from "vue";
var app = new Vue({
    el: '#app',
    data: {
      message: 'Hello Vue!'
    }
  })

and in my html file I added this:

<div id="app">
  {{ message }}
</div>

when webpack compiles, it creates this main.js file but the {{ message }} is not changed to Hello Vue!. What I am doing wrong here that this is not working?

Also no error is showing in dev tools.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Try

import Vue from "vue";
var app = new Vue({
    el: '#app',
    data () {
      return {
        message: "Hello Vue!"
      }
    }
  }).$mount('#app');

This would solve your problem

about 4 years ago · Juan Pablo Isaza Report

0

import Vue from "vue";

new Vue({
   data() {
       return {
          message: 'Hello Vue!',
       };
   },
}).$mount('#app');
about 4 years ago · Juan Pablo Isaza Report
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!