I have an input type as text to select dates and I want that Its default value should be the earliest amongst the JSON data having following structure:
testData=
{
"name":"ABC", transactions:[
{"tranid":01,"trandate":"01/02/2010"},
{"tranid":02,"trandate":"01/02/2012"}
]
}
I want to iterate through transactions and Dispay the earliest date in the text input(i.e 01/02/2010)
Please assist how to do it in angular.