Skip to content

Instantly share code, notes, and snippets.

@Francisco-Castillo
Created May 26, 2022 16:40
Show Gist options
  • Save Francisco-Castillo/17fc8ab654385391760afc73e7296bd0 to your computer and use it in GitHub Desktop.
Save Francisco-Castillo/17fc8ab654385391760afc73e7296bd0 to your computer and use it in GitHub Desktop.
Angular JSON pipe to print object array
<div>
{{employees |json}}
</div>
@Francisco-Castillo
Copy link
Author

Let’s use json pipe for an object or array of object.

[ { "id": 1, "name": "Ram", "salary": 5000 }, { "id": 2, "name": "John", "salary": 1000 }, { "id": 3, "name": "Franc", "salary": 3000 }, { "id": 4, "name": "Andrew ", "salary": 8000 } ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment