how to get data of php Web api json from server to using angularJs.?
问题 When i am save this json in my local computer and use it in my angularjs script. It's work fine. But when i am using direct server to this it is not working why.? What are missing in my script.? my Json File > http://deals.ownaroof.com/api/webservices/locations_list.json Html > <div ng-controller='prefferedCtrl'>{{locations}}</div> Script > (function(){ angular.module('myapp',['ngRoute']) //afactory to consume webservices and return data to controllers. .service('webServices',['$http'