android - JSON shows in browser, but not show in mobile application -
Hello I'm using an application to develop an application and this is my code where I
& lt ;! DOCTYPE html & gt; & Lt; Html class = "no-js" lang = "en" ng-app = "myBusStopApp" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" /> & Lt; Meta name = "viewport" content = "width = device-width, initial-scale = 1.0" /> & Lt; Title & gt; My bus stop - real-time data & lt; / Title & gt; & Lt; Link href = "http://fonts.googleapis.com/css?family=Open+Sans" rel = "stylesheet" type = "text / css" & gt; & Lt; Link rel = "stylesheet" href = "http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" & gt; & Lt; Script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Angular.module ('myBusStopApp', []). Controller ('myBusStopCtrl', ['$ scope', '$ http', function ($ radius, $ http) {// $ scope.realTimeData; var url = 'http: //eaglenew.comoj.com/JsonReturn.php '; // var url = "http://reis.trafikanten.no/reisrest/realtime/getrealtimedata/3010435" + "? Callback = JSONClub"; $ http.get (Url) .success (function (data) {$ Scope.realTimeData = data; //console.log(data+"ddddddddddddddd ");});}]); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body style = "margin-top: 2%; font-size: 14px; font-family: open breath; padding-left: 2%; padding-right: 2%;" & Gt; & Lt; Div ng-controller = "myBusStopCtrl" & gt; & Lt; Center & gt; & Lt; Div class = "table-responsive" style = "max-width: 800px;" & Gt; & Lt; Table class = "table-striped" & gt; & Lt; Thead & gt; & Lt; Tr class = "info" & gt; & Lt; Th & gt; Just # & lt; / Th & gt; & Lt; Th & gt; Destination & lt; / Th & gt; & Lt; Th & gt; Wait time & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; Tr ng-repeat = "item in real-time data" & gt; & Lt; TD & gt; {{Item.id}} & lt; / TD & gt; & Lt; TD & gt; {{Item.email}} & lt; / TD & gt; & Lt; Td> {{Item | Json}} & lt; / Td> & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; / Div & gt; & Lt; / Center & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt; In this code, JSON data appears in the web beaver, but when I try to launch it does not show any data in my phone
Showing this ->
{{item.id}} {{item.email}} {{items | Json}}
error is not visible in console , please help me .... thanx in advance
Comments
Post a Comment