it returns the attributes instead of the whole model? Or else how would data.[key] work in the template?