Answer the question
In order to leave comments, you need to log in
How to select from json by first letter of name in Angularjs?
Hello! How can you select in Angularjs by the first letter in an array? For example, there is this json file:
[
{
"code": "AD",
"name": "Andorra",
"population": "84000"
},
{
"code": "AF",
"name": "Afghanistan",
"population": "29121286"
},
{
"code": "BA",
"name": "Bosnia and Herzegovina",
"population": "4590000"
},
{
"code": "BB",
"name": "Barbados",
"population": "285653"
},
]
[
{
"code": "AD",
"name": "Andorra",
"population": "84000"
},
{
"code": "AF",
"name": "Afghanistan",
"population": "29121286"
},
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question