0
votes

Is there an easy way to view all the attributes of a backbone.js model that I could access with @model.get()? alert @model.attributes only displays [object Object].

1

1 Answers

2
votes

To get just the keys for the attributes, try:

Object.keys(@model.attributes)