ngx-meta icon indicating copy to clipboard operation
ngx-meta copied to clipboard

support for canonical tags

Open markoddi opened this issue 8 years ago • 8 comments

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?

markoddi avatar Apr 20 '17 14:04 markoddi

Hi @markoddi, I've found some useful info on this topic (https://github.com/angular/angular/issues/15776#issuecomment-291862953).

I am planning to update this repo with this feature, on v0.2.0 final release.

fulls1z3 avatar May 09 '17 07:05 fulls1z3

Hi @fulls1z3, I am using v0.4. Is this version going to get an update about this like v.0.2.0??

jesspagan avatar Jul 08 '17 03:07 jesspagan

@jesspagan this feature will be implemented both on v0.2.0 and v0.4.0

fulls1z3 avatar Jul 11 '17 12:07 fulls1z3

@fulls1z3 have you some news about this? If you want I can do a PR with this feature

rafa-suagu avatar Jan 10 '19 08:01 rafa-suagu

@rafa-as sorry for the delay, had busy times. feel free to fire a PR and i'll approve.

fulls1z3 avatar Nov 22 '19 00:11 fulls1z3

Probably related to: https://github.com/angular/angular/issues/34605

d-koppenhagen avatar Jan 01 '20 12:01 d-koppenhagen

@d-koppenhagen are you working on a Link Service to do a PR to Angular project?

rafa-suagu avatar Jan 24 '20 09:01 rafa-suagu

yes. The PR is already there: https://github.com/angular/angular/pull/34606

d-koppenhagen avatar Jan 24 '20 09:01 d-koppenhagen