skip to Main Content

Please follow my below thread, I tried searching alot online

Header and Footer in Angular 5

Tried many examples :

https://angular.io/guide/universal
https://coursetro.com/posts/code/68/Make-your-Angular-App-SEO-Friendly

I am able to see the tag in the browser, but when not in the view-source.

Please suggest me a working example or a plunkr, thanks.

2

Answers



  1. you must include Angular universal so as to get the title & meta tags rendered in the page source.

    Please follow this link: https://github.com/angular/angular-cli/wiki/stories-universal-rendering

    https://malcoded.com/posts/angular-fundamentals-universal-server-side-rendering

    I too ran into the same issue during the past week & I solved it using the above things. Please follow the steps & you can get it rendered on the page as shown below

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search