How to initialize widget in component Vue?
问题 I want to add maps in my app on VueJS. As it descriped in manual I wrote in HEAD: <script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script> Then in App-component I did: <template> <div id="app"> <img src="./assets/logo.png"> <router-view></router-view> <div id="map" style="width: 600px; height: 400px"></div> </div> </template> <script> export default { name: 'app', created () { var map = new ymaps.Map("map", { center: [55.76, 37.64], zoom: 7 }); } } </script>