I need to make an automatic receipt of weather at the current coordinates when the user enters the view (that is, the user opens the view and already sees the current weather at his current coordinates). I made getting the weather at the current coordinates when the user clicks on the button get weather. But I can’t do it in the
In the view I have a component, which captures coordinates:
<capture-coordinates bind="report.location" show-if="false" />
But when I try to get
report.location in the init function, then I get
Is there some way to get the coordinates and make a request for the weather without pressing a special button?
Thanks in advance!