Update meta tags in angular universal with external API call

后端 未结 4 1983
庸人自扰
庸人自扰 2020-12-30 12:02

I\'ve spent more than 2 months but could not found a clear solution of how to proceed with angular universal. I\'ve already spent about 6 months in implementing angular univ

4条回答
  •  遥遥无期
    2020-12-30 12:30

    First Add all required meta tags in index.html file like this

    Then update the meta tags in each required component, use meta.updateTag() as below

    This one worked for me.

    I try to create service to update but that not worked, its working only when meta update added in the same component.

提交回复
热议问题