skip to Main Content

I have created an website in Angular 4/5 (not Universal). When i want to find my website in google search then my website has not any description, just title.
Is there any way to change this without using Angular Universal? I dont want any seo optimalization, just this desription.

2

Answers


  1. You need to add a “description” meta tag in index.html . Like the one below.

    <meta name="description" content="[Your description goes here]">
    

    Add your website URL to Google using link below.
    https://www.google.com/webmasters/tools/submit-url

    AND This might take little time to get reflected in Google search.

    Google document link – https://support.google.com/webmasters/answer/35624?hl=en

    Login or Signup to reply.
  2. Take advantage of the Meta injectable service.

    Example usage

    import {Component} from '@angular/core';
    import {Meta} from '@angular/platform-browser';
    
    @Component({
      selector: 'app-component',
      template: 'my awesome app'
    })
    export class AppComponent {
      constructor(private meta: Meta) {
        this.meta.addTag({ 
          name: 'description', 
          content: `My site's description that will show in google`
         })
      }
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search