This is Angular’s way of looping through everything inside of our posts variable we made in the post-list component. Now if you run ng serve and go to localhost:4200 in your browser, if you’ve created any posts in the WordPress admin area, you’ll see a list of their names.

If you want to see what other data the API has given back, just open up your browser’s inspector, check the Network tab, click ‘posts’ and preview. You’ll see a list of objects (posts). By clicking into them, you can explore all the data the API has provided.

Related Post

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

Leave a Comments