I Use the smart ng-admin for my website administration.
On the edit view, I display, say a post. On the other hand, I Want to upload an image for that post. My back api needs the information about my post.id , so , post is the model in ng-admin, I want to know how to acces my post id , to do something like that in my view :
nga.field('postImage','file').uploadInformation(
{
'url': settings.baseUrl + 'url/to/upload?ref_id='+ post.id ???
})
Thanks in advance for your help. Have a nice day coding and doing some nice stuffs.