router
Add the ability to provide meta tags for a specific page via RouteMeta
in the following way:
// routes/index.ts
export const routeMeta: RouteMeta = {
title: 'Home',
meta: [
{ name: 'description', content: 'Home Page Description' },
{ name: 'author', content: 'Marko' },
// ...
],
};
@Component({ /* ... */ })
export default class HomeComponent {}
Meta tags can be also set via resolver:
export const routeMeta: RouteMeta = {
title: 'Home',
meta: () => inject(MetaService).getMetaTags(),
};
No response
Owner Name | analogjs |
Repo Name | analog |
Full Name | analogjs/analog |
Language | TypeScript |
Created Date | 2022-07-06 |
Updated Date | 2023-03-28 |
Star Count | 885 |
Watcher Count | 18 |
Fork Count | 67 |
Issue Count | 33 |
Issue Title | Created Date | Updated Date |
---|