Angular
Get started with integrating Mosaic into your Angular project.
Step 1
Use Angular's Meta service:
import { Component } from '@angular/core';
import { Meta } from '@angular/platform-browser';
@Component({
selector: 'app-page',
template: '<h1>My Page</h1>'
})
export class PageComponent {
constructor(private meta: Meta) {
this.meta.updateTag({
property: 'og:image',
content: 'https://mosaicimg.com/use?url=yourwebsite.com/your_slug'
});
}
}