I want to add region-based search functionality to my Ionic 1.* app. When a customer search for a store, they would get store (results) that are close to them, maybe a mile or two. Am using a PHP as my api
How to I achieve this?
I want to add region-based search functionality to my Ionic 1.* app. When a customer search for a store, they would get store (results) that are close to them, maybe a mile or two. Am using a PHP as my api
How to I achieve this?
You want to use angular's $http to make an http request to your api.
$http.get('urlToYourAPIEndpoint')
.then((response) => {
// append response to dom
});
Some tips: