mohsen1 / json-formatter

Angular directive for collapsible JSON in HTML
http://azimi.me/json-formatter/demo/demo.html
Other
372 stars 85 forks source link

feature: title attribute #44

Closed raykin closed 8 years ago

raykin commented 8 years ago
   <json-formatter json="{my: 'json'}" open="1" title="TestObj"></json-formatter>

So the title 'TestObj' can replace 'Object'. It can be useful when create constructor for json value is not easy(ex: json value returned from API or hash from other source)

mohsen1 commented 8 years ago

Ok. I think I'm going to accept this PR. Please add documentations and more tests. Also please rebase into one commit.

Thanks!

raykin commented 8 years ago

I'll close it and add a new example in demo.html. what more tests do you refer to?