angularjs - Angularjstable example -


hai guys got data restfull web service angular function need place data in form table not getting code pls me code is. need show in table form in json pls suggest me

  <script type="text/javascript">     function contactcontroller($scope,$http) {      //   $scope.contacts = ["hi@email.com", "hello@email.com"];          $scope.add = function() {         $http.get('http://localhost:8080/projectmanagement/rest/getproject/details').success(function(data, status, headers, config,response){              var json = json.stringify(data);              var getresponsetext = json.parse(json);             var prjdetails=getresponsetext.responsetext;              var fields = getresponsetext.split("|");             $scope.people = [];              var projectid = fields[0];             var projectname = fields[1];             var claintid = fields[2];             var projectstatus = fields[3];             var prjstartdate = fields[4];             var prjenddate = fields[5];             var lastmodified = fields[6];             var prjpinurl = fields[7];              claim = '';              claim = '{ "records":[{';             claim += '"projectid": "'+ projectid+ '", ';             claim += '"projectname": "'+ projectname+ '", ';             claim += '"claintid": "'+ claintid+ '", ';             claim += '"projectstatus": "'+ projectstatus + '", ';             claim += '"prjstartdate": "'+prjstartdate+ '", ';             claim += '"prjenddate": "'+ prjenddate + '", ';             claim += '"lastmodified": "'+ lastmodified + '", ';             claim += '"prjpinurl": "'+ prjpinurl + '", ';             claim += '}]}';             }).error(function(data, status, headers, config,response) {           });         }     } </script> 

if json returned server, not call json.stringify since "stringified" when sent server.

it not possible further without seeing actual response server.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -