Abel Anojan Sithamparappillai Abel Anojan Sithamparappillai - 10 months ago 58
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"}]};