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' });
More Related Contents:
- Google search results site map?
- Angular 4 – Update Meta tags dynamically for Facebook (Open graph)
- What happens if the meta tags are present in the document body?
- Ignore URLs in robot.txt with specific parameters?
- Google displaying website title differently in search results
- Do Google or other search engines execute JavaScript?
- Do SEO-friendly URLs really affect a page’s ranking? [closed]
- Robots.txt: Is this wildcard rule valid?
- What are the parameters for the number Pipe – Angular 2
- Angular – ‘Could not find HammerJS’
- Body of Http.DELETE request in Angular2
- How to run the Dist Folder on Local Machine in Angular 6+?
- Angular 2 change event – model changes
- How to combine the results of two observable in angular?
- SassError: Can’t find stylesheet to import. @use ‘~@angular/material’ as mat;
- What makes a “friendly URL”? [closed]
- How to delete a field in a Firestore Document?
- Angular 2 Reactive Forms trigger validation on submit
- How to use angular 2 service with Ionic 2?
- Angular 2 – multiple instance of service created
- Angular2 HTTP GET – Cast response into full object
- Need BrowserAnimationsModule in Angular but gives error in Universal
- Angular 2 disable sanitize
- Can I use Angular i18n to translate string literals in typescript code
- Angular 2 beta – Select not working (except in Chrome)
- How to serve up images in Angular2?
- How to generate components in a specific folder with Angular CLI?
- What are all the index.ts used for?
- Dynamically updating css in Angular 2
- CORS: PHP: Response to preflight request doesn’t pass. Am allowing origin