How to set meta tags using Angular universal SSR and ngx-seo plug-in

0 votes
Feb 10 in Others by Kichu
• 19,040 points
549 views

1 answer to this question.

0 votes

first Install the plug-in with npm i ngx-seo then Create the page.resolver.ts file somewhere in your project - https://angular.io/api/router/Resolve The resolver file will be responsible for retrieving data from your API or from the TransferState provided by Angular.

Import the import { TransferState, makeStateKey } from '@angular/platform-browser';  then  Decorate your page.resolver.ts class @Injectable({ providedIn: 'root' })

Implement in Page Resolver class resolver interface like this: implements Resolve<type of the data that you manipulate>

In the constructor of PageResolver class register the TransferState and SeoSocialShareService

answered Feb 11 by narikkadan
• 10,840 points

Related Questions In Others

0 votes
0 answers
0 votes
1 answer

How to add SEO properties in sitemap using xml

i think your layout of the sitemap ...READ MORE

answered Feb 12 in Others by narikkadan
• 10,840 points
74 views
0 votes
0 answers
0 votes
1 answer

How implement SEO (Metatags) in Angular 2 (with Angular universal for rendering on server side)?

https://github.com/angular/universal-starter follow this repo among it there ...READ MORE

answered Feb 22 in Others by narikkadan
• 10,840 points
140 views
0 votes
0 answers

Pre-rendering VS Server-side rendering for Angular SEO

i want to integrate an seo optimization ...READ MORE

Feb 14 in Others by Kichu
• 19,040 points
68 views
0 votes
1 answer

angular-6-seo-routing Issue

angular websites are not crawled by google ...READ MORE

answered Feb 22 in Others by narikkadan
• 10,840 points
61 views
0 votes
1 answer

Pre-rendering VS Server-side rendering for Angular SEO

https://developers.google.com/web/updates/2019/02/rendering-on-the-web use this article it explains all about ...READ MORE

answered Feb 22 in Others by narikkadan
• 10,840 points
53 views
0 votes
1 answer

How to use next-seo for setting nextjs meta tag with multiple OGP images?

https://github.com/garmeeh/next-seo use this git repo that contains ...READ MORE

answered Feb 24 in Others by narikkadan
• 10,840 points
256 views
0 votes
1 answer

How to add meta keyword in wordpress using yoast seo plugin.?

if you dont want to use code ...READ MORE

answered Feb 12 in Others by narikkadan
• 10,840 points
87 views
0 votes
1 answer

How to Access Yoast SEO tags in Wordpress API Callback

use rest api to request for the ...READ MORE

answered Feb 12 in Others by narikkadan
• 10,840 points
115 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP