1
There are a couple of issues here:
- Yes, the
[[]]
brackets are the problem here because they enforce one-way binding. That means that theresults
from thegoogle-map-search
can’t propagate upwards and the labels are empty. You need to change the results=[[results]]
toresults={{results}}
to enable two-way binding - For declerative event handlers, you don’t need any brackets. So this line
<paper-button on-tap="[[upload]]">Accept</paper-button>
should be ?<paper-button on-tap="upload">Accept</paper-button>
- To access sub-properties of an data bound object you need to use dot notation (
.
). This line<label>coords:[[ results::lat ]], [[ results::lon ]]</label>
should be changed to<label>coords:[[ results.lat ]], [[ results.lon ]]</label>
- I would also change
lat
andlon
to computed properties which either return default values (alternatively just use attributes on yourgoogle-map
element for that) or the values from your search result.
Source:stackexchange.com