I am learning Angular and as a practice project, I am developing a front-end interface (with angular 13) for a Wordpress API served from a Docker container.
The angular app has to display the list of all posts obtained from the API and by making use of routing, once clicked on a post, in /post/:id:/:slug/ should be shown only the post requested.
My project's code: https://www.temporary-url.com/3BD84
My latest changes/commits, to implement lazy loading: https://www.temporary-url.com/08C
App looks like this:
and these are some logs of what is being called:
When a post is clicked (for example the one titled Hello World), the url in the address bar changes correctly to host:port/post/1/hello-world and the following is called:
- but the page's content doesn't change. The clicked post isn't displayed (singularly). I suppose there is some routing issue, but haven't been able to find it. What am I doing wrong?