Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: How to make ng-repeat in angular js with json

Rizka Nugroho:

I am having trouble with making a list with Json data. I have some json data like this


[
{
"date time":"2017-05-15 12:45:24",
"latitude":"-7.9786395",
"longitude":"112.5617418"
},
{
"date time":"2017-05-15 12:45:32",
"latitude":"-7.9786395",
"longitude":"112.5617418"
}
]

I want to make list from json per date but if I use this json it want make list per data not per date. or maybe my code in php is wrong.

php code


$sqlcode = $con->query("select `date time`, `latitude`, `longitude` from data WHERE `imei`='$w12' AND `latitude` $jsonObj = array();
while ($result = mysqli_fetch_object($sqlcode)) {
$jsonObj[] = $result;
}
$final_res = json_encode($jsonObj);
echo $final_res;

I want to make list like this http://ift.tt/2s4Cw09.



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: How to make ng-repeat in angular js with json

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×