Created
May 26, 2022 16:40
-
-
Save Francisco-Castillo/17fc8ab654385391760afc73e7296bd0 to your computer and use it in GitHub Desktop.
Angular JSON pipe to print object array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
{{employees |json}} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 } ]