In angular 2 how can I make the canonical tag dynamic per page.
This is my index page tag for it:
<link rel="canonical" href="https://mywebsite.co.uk" />
How can I make it dynamic e.g. if on blog page it should look like this at run time:
<link rel="canonical" href="https://mywebsite.co.uk/blog" />
I'm using angular version 4, webpack and typescript with ng2-metadata to change the title, description and keywords of all my urls.
I just need the canonical tag to change for the seo google bot.