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

226
Views
API de GoogleMaps con integración de VueJS y Laravel

Quiero integrar un mapa a través de la API de GoogleMaps en mi aplicación Laravel. Por lo tanto, elegí una configuración como esta:

HTML

 (...) <body> <div class="wrapper wrapper-content animated fadeInRight"> <div id="app"> </div> </div> <script src="https://maps.googleapis.com/maps/api/js?key=[APIKEY]&libraries=places,geometry&callback=app.init" async defer></script> </body> (...)

Javascript VUE

 window.Vue = Vue; window.Event = new class { constructor() { this.Vue = new Vue(); } fire(event, data = null) { this.Vue.$emit(event, data); } listen(event, callback) { this.Vue.$on(event, callback); } }; window.app = new Vue({ el: '#app', components: { GISView: GISView }, data: { }, methods: { init: function() { this.$broadcast('MapsApiLoaded'); } } });

Al cargar la página, encuentro en la consola de herramientas de desarrollo el mensaje: ingrese la descripción de la imagen aquí

¿Por qué no se encuentra la función app.init, ya que la configuré en mi instancia de VUE?

over 4 years ago · Santiago Trujillo
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!