I would like some help how to read this JSON and create a html  from it I 
accept suggestions for creating forms. I thank you                              
                          angular.module('testejsonApp')  
.controller('MainCtrl2', (function($scope) {                               var 
test_data = {"Nome":"Fabio ", Sobrenome":"Zacarias"};         var test_data2 = 
{"Nome":"Robrigo", "Sobrenome":"da SIlva"};    var transform = [      
{"tag":"input", "html":"", "value":"${Nome}"},      {"tag":"input", "html":"", 
"value":"${Nome}"},      {"tag":"textarea", "html":"${Nome}"},      
{"tag":"textarea", "html":"${Sobrenome}"}      {"tag":"button", "class":"btn" 
"html":"${Sobrenome}"}];          var html = json2html.transform(test_data, 
transform);                                var html2 = 
json2html.transform(test_data2, transform);


    $scope.teste = html;
    $scope.teste2 = html2;
  }));


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to