ng2-meta
ng2-meta copied to clipboard
SEO does not work with ng2-meta in SPA
I have tried implementing this in my application and as well i have tried to see the updated title and description in facebook post with the different route urls of the demo application.
http://vinaygopinath.github.io/ngMeta/#/download
In the facebook post i have tried using below urls
- http://vinaygopinath.github.io/ngMeta/#/download
- http://vinaygopinath.github.io/ngMeta/#/
- http://vinaygopinath.github.io/ngMeta/#/example/dynamic-tags
For all the three url's i could see same title and description in the preview
Please help us understanding whether we are expecting which is not supported by this library or we are missing some thing.
Thanks in Advance, Phani
As far as I know you can set a default title with this module. Depending on what component you call you can update the title, but this is done after a small amount of time. I assume that facebook just uses the inital title when fetching the url as it would be overkill to load the complete page and wait for the title to get updated.
It will load your defaults. For true SEO you should look into server rendering through angular universal.