ng-repeat doesn't work on json array

Question!

I have this json array

[ 
{ Company: 
{ id: "19", features_id: null, features: "a:6:{i:1;s:1:"1";i:2;s:1:"2";i:3;s:1:"3";i:4;s:1:"0";i:5;s:1:"0";i:6;s:1:"6";}" }, User: [ ] }, -{ Company: 
{ id: "20", features_id: null, features: "a:6:{i:1;s:1:"1";i:2;s:1:"2";i:3;s:1:"3";i:4;s:1:"4";i:5;s:1:"5";i:6;s:1:"6";}" }, User: 
[ 
{ id: "1", group_id: "1", type: null } ] }]

for somereason I cant get data into my div. Anyhelp will be appreciated. here is the jsfidler

http://jsfiddle.net/4Y9L3/

By : Autolycus


Answers
That JSON is not valid. Also, your template is not going to output anything visible unless you put some bind tags in the repeater like {{Company.Company.id}} for example.



You are using $.ajax(), so Angular doesn't know about it.

Use $http like this http://jsfiddle.net/4Y9L3/5/.

By : Vojta


This video can help you solving your question :)
By: admin