AngularJS Question

How to use Ng-repeat within controller not in view

According to the below json. If I call this scope in controller, I am getting output :


I want to get only
but within controller I want to do. Does anyone help on this?


Answer Source

You can use pure javascript,

var myObject = {"text":[{"code":"USD","value":"0.00670000"}]};


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download