Connect component. I specified a ref for it, for example, to create a cluster icon
But does not go to appeal
<ymap-marker v-for="(placemark, index) in placemarks" :key="'placemark' + index" :coords="placemark.coords" :marker-id="index" :options="{ hideIconOnBalloonOpen: false }" :balloonTemplate = "balloonTemplate(placemark.address)" :icon="{ layout: 'default#image', imageHref: markerIcon, imageSize: [30, 30], imageOffset: [0, 0]}" marker-type="placemark" cluster-name="1"></ymap-marker>
computed: { clusterIconContentLayout: function(){ return this.$refs.map.myMap.templateLayoutFactory.createClass('{{ properties.geoObjects.length }}') } }
Error "TypeError: Cannot read property 'myMap' of undefined"