This is the json the format i received and i want to print the msg and the username field..How to do that? and also want to format the date in Y-m-d format...how i will acheive it..i have tried ng- repeat but i couldnt print the data ..so please help me to print this json array in angualar js html
HTML
<ul>
<li>msg</li>
<li>date</li>
</ul>
{
"messages": [
{
"_id": "sdfsdfsd",
"t": "subscription-role-removed",
"rid": "sdfsfsfd",
"ts": "2017-05-10T07:03:26.865Z",
"msg": "samim",
"u": {
"_id": "sdfdsf",
"username": "dsdfsfsd"
},
"groupable": false,
"role": "moderator",
"_updatedAt": "2017-05-10T07:03:26.865Z"
},
{
"_id": "sdfsdfsdfssd",
"t": "subscription-role-added",
"rid": "asdafdaf",
"ts": "2017-05-10T06:51:23.147Z",
"msg": "samim",
"u": {
"_id": "ssdfsdf",
"username": "adfffffsfmin"
},
"groupable": false,
"role": "moderator",
"_updatedAt": "2017-05-10T06:51:23.147Z"
},
{
"_id": "fafasfasf",
"t": "au",
"rid": "sdfsdfsfsdf",
"ts": "2017-05-10T06:50:14.029Z",
"msg": "samim",
"u": {
"_id": "sdfsdfsdfsdf",
"username": "sdfsdfsd"
},
"groupable": false,
"_updatedAt": "2017-05-10T06:50:14.036Z"
},
{
"_id": "sfdsfsdfsd",
"rid": "sfsdfsdfs",
"msg": "hi",
"ts": "2017-05-10T06:44:27.610Z",
"u": {
"_id": "sdfsdfsdf",
"username": "sfsdfsdf"
},
"_updatedAt": "2017-05-10T06:44:27.611Z"
},
{
"_id": "sdfsdfsd",
"rid": "sdfsdfsdfsdf",
"msg": "hello",
"ts": "2017-05-10T06:38:10.509Z",
"u": {
"_id": "sdfsdfsd",
"username": "sdfsdfsdsdf"
},
"_updatedAt": "2017-05-10T06:38:10.514Z"
}
],
"success": true
}