Friday 15 June 2012

javascript - json array disply in <li> using angular js -


After receiving the JSON array I am receiving the API call, I am following the JSN response. "Audit": {"Source": "Medicare", "The": "Labels": "Labels": "Skin Amount"}, Date ":" "-" other - iodine "," other "-" "," label ":" 2015-03-02T18: 39: 23Z "," update date ":" 2015-03-02T18: 39 : 23Z "," version ":" 1 "}," label "end": "2007-10-28 T 00: 00-04: 00", "Start": "1993-01-01 to 00: 00: 00 -05: 00 "," Date ":" 2015-03-02T18: 37: 42Z "}".

and I only need to display

": [{" seriousness ": {" label ":" in leak tag How can I do this?

Send me & lt; Need to populate this json array in li & gt; In html5, how can I do this? I'm using logical.

Angular JS File:

  Residential.one ('APIINAM', parameter_to_api) .get () Then (action (result) {$ Scope.datalist = result;}  

HTML file

  

Try it

  var app = angular module ('app', []); App.controller ('firstCtrl', function ($ Scope) {$ scope.datalist = {data1: [2, 3, 4], data2: [6, 7, 8,], data 4: [9, 10, 12]}});  
  & lt; script src = "https: // ajax. Googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> bodyng-app = "app" & gt; div ng-controller = " FirstCtrl ">  gt; & lt; li ng-repeat =" i in data "& gt; {{I}} & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Body & gt;  


No comments:

Post a Comment