How can i get data from url in ionc

hi friends i am creating i app i want to get data from a url like : but i not able to get it.Please tell me i am fresher in ionic…thanks you

This is not an ionic question, it’s only plain AngularJS, learn about writing a service using $http, your PHP must return JSON data.

thanks sir for replying… php retruning json data here is my code

.controller(‘SearchController’,[’$scope’,’$http’, function($scope,$http){

	$ = data;


if i give local file path like (js/data.json) then its working

read this REST API call example can help you -