How can I use this json pretty print [ http://jsfiddle.net/KJQ9K/ ] with angularJS?
Lets assume myJsonValue is
{a:1, \'b\':\'foo\', c:[false,\'false\',n
Another option is to turn the function into a filter...
app.filter('prettify', function () { function syntaxHighlight(json) { // ... } return syntaxHighlight; });
HTML...
JsFiddle: http://jsfiddle.net/KSTe8/