Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

106
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

0

import Vue from "vue";

new Vue({
   data() {
       return {
          message: 'Hello Vue!',
       };
   },
}).$mount('#app');
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda