Angular2 – SEO – how to manipulate the meta description

Since Angular4, you can use Angular Meta service.

import { Meta } from '@angular/platform-browser';

// [...]

constructor(private meta: Meta) {}

// [...]

this.meta.addTag({ name: 'robots', content: 'noindex' });

Leave a Comment