You can use this pipe like:
<pre [innerHtml]="YOUR_JSON | prettyJson: [true, 3]"></pre>
prettyJsonPipe default values are 'false' for line numbers and 3 for paddings.
The difference between <pre>{{YOUR_JSON | json}}</pre>
and this pipe; You can add line numbers and you have a CSS file colored by value types like string, number and bool.
-
Notifications
You must be signed in to change notification settings - Fork 0
cmoztas/Angular-Pretty-Json-Pipe
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
JSON Prettier Pipe for Angular Project
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published