Angular Goodness – Display the JSON Object as a String for Debugging
During development, we always want to know the current status of the JSON Object, as this objects state keeps getting changed based on User actions as well as $http interaction.
AngularJS, has a built in filter called JSON which allows to convert the JSON object to String literal.
And combine this with html5 pre and you have a powerful combination
AngularJS, has a built in filter called JSON which allows to convert the JSON object to String literal.
And combine this with html5 pre and you have a powerful combination
originally published in 2014
Comments
Post a Comment