I'm using ng2-metadata with my angular app and google only seems to show the default title and meta description.
My tech: Angular version 4, webpack, typescript and firebase for hosting.
I'm deploying an AOT build and I have added the ng2-metadata aot function like the below link suggests.
This is the package I'm using: https://www.npmjs.com/package/ng2-metadata
Current issue:
The code seems to work in the browser visually but the google bots don't seem to show the other pages title and meta tags in the google search results.
*I've done a webmaster tools crawl request to index the pages even though its a SPA.
This is one of my routes for my blog page (I've removed some of the text):
import { Route} from '@angular/router';
import { BlogComponent } from './blog.component';
export const BlogRoutes: Route[] = [
{
path: 'blog',
component: BlogComponent,
data : {
metadata : {
title : 'My Website | Blog',
override : true,
description : "The latest news & blog post....",
keywords: "blog, reading, posts"
}
}
}
];