dimanche 24 juillet 2016

how to output value of object Object in handlebars

I am super green with ember and handlebars and I hit a brick wall, so a little help is appreciated.

I have some json:

[{"_links":{
     "author":[
        {
           "embeddable":true,
           "href":"http:\/\/example.com\/users\/1"
        }
     ],}]

and in handlebars I am trying to get href like this


    


but it returns nothing. author is an array but I don't know how to access it in handlebars, and what I read here on SO, I don't feel fits in context.




Aucun commentaire:

Enregistrer un commentaire