I moved my site to Angular universal SSR, during my move I encountered some problems that I thought ng-universal would fix.
I want to add meta tags such as description, keywords etc (different for each page).
Using the titleService
as angular suggests works just fine, it changed the title of the pages. However if I land on homepage and then navigate from there to other pages, the title is not changing, but when I look on source I see the change in the source but no on the tab of VIEW. If I land on the page (or hit refresh) the page is updated with the correct title.
I tried to add in additional to the title meta tags, but nothing works:
this.meta.updateTag( {name: "description", content: 'test1234});
this.meta.addTag({name: 'description', content: 'Content description' });
OR
using vanilaJS
var doc = (<HTMLMetaElement>document.getElementById('description'));
doc.content = "test1234";
the meta is not changing in the header section. I have no idea why. any help can assist.. thanks