-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Hi,
How do I make the canonical tag change. I've got the title, description and keywords changing ok.
Do I simply do this:
{
path: 'home',
component: HomeComponent,
data: {
meta: {
title: 'Home page',
description: 'Description of the home page',
canonical: 'mywebsite.com/home'
}
}
}
I'm using angular version 4, with webpack, typescript and ng2-meta plugin. I just need to make the canonical tag change in runtime like the description changes. Is this possible?
teleaziz, rafa-suagu, benjamincharity, DaSchTour and andimiyamarkoddi