I have a classifieds website done in Angular 8. The contents of each posts are fetched from database. The problem is when i share the link of a post in Social medias. it is only Showing my index page title along with the url.
But what i want is the page title and description which is loaded dynamically like this
Can somebody please help me with this.
what i want is , when i paste a url while i share my posts in facebook, it should fetch the title and description automatically. I am now setting the title and description by code. But facebook is not rendering it because, it is not there when the html is loading firstly.
Currently i am setting the page title like this.
constructor(private titleService: Title){
this.titleService.setTitle('Classifieds | Job Details'); //setting title
}