-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
This one is semi-difficult. If you can't get to it, I can do it. But its a good exercise for you because it touches on a bunch of topics (routes, loads of promises, etc).
Auto set the location search field based on (in order):
- If user is logged in & has city/state in profile - use data.loc
- If user is not logged in or doesn't have city/state - use HTML5 geolocation (http://www.w3.org/TR/geolocation-API and http://www.w3schools.com/html/html5_geolocation.asp)
Also need probably need a button/link to clear location.