You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google and Google+ don't use the same bot to index websites - Googlebot fetches the HTML, executes Javascript, waits till rendering is complete (during which Angular and ngMeta are loaded, and ngMeta creates the tags based on your route/state configuration) and then picks up the meta tag information from the page.
The bots of Google+, Facebook, Twitter and others simply fetch the HTML and, expecting the page to be static (either static HTML or pre-rendered server-side), grab the tags and values defined in elements. This is why Facebook sees the raw text "{{ngMeta.title}}", not "Example - Dynamic Tags | ngMeta - Customize meta tags from your controllers".
ngMeta, like any other Angular 1x SEO library, or indeed, Angular itself, is incapable of generating static HTML. ngMeta can only support crawler bots that execute Javascript.
Activity
vinaygopinath commentedon Sep 14, 2016
Please refer to the Support for other crawlers section of the README
yobre commentedon Sep 14, 2016
Ok.
Now i understand.
But i've tried to post on G+ your demo site link and doesn't work. what am I doing wrong?
vinaygopinath commentedon Sep 14, 2016
Google and Google+ don't use the same bot to index websites - Googlebot fetches the HTML, executes Javascript, waits till rendering is complete (during which Angular and ngMeta are loaded, and ngMeta creates the tags based on your route/state configuration) and then picks up the meta tag information from the page.
The bots of Google+, Facebook, Twitter and others simply fetch the HTML and, expecting the page to be static (either static HTML or pre-rendered server-side), grab the tags and values defined in elements. This is why Facebook sees the raw text "{{ngMeta.title}}", not "Example - Dynamic Tags | ngMeta - Customize meta tags from your controllers".
ngMeta, like any other Angular 1x SEO library, or indeed, Angular itself, is incapable of generating static HTML. ngMeta can only support crawler bots that execute Javascript.