I have a Vue component that renders blog posts. It currently just loads a collection of posts and renders them to the UI. This all works great.
Each of these posts has a slug, i.e. the-best-post-ever.
I'd like to enable my blog component to be able to read that value (or be passed it) and render that individual post instead of the list.
So visiting the blog would be something like http://example.com/blog whereas an individual post would be http://example.com/blog/the-best-post-ever.
What's the best way of handling this?