-
Notifications
You must be signed in to change notification settings - Fork 27k
Closed
Description
We need a universal service (i.e. both on client and server) that can be used by any Angular 2 app to manage the HEAD section of the HTML document. For example:
class MyHomePage {
constructor(headService: HeadService) {
headService.setTitle('My home page title');
headService.setDescription('Description here');
headService.setMeta('author', 'Jeff Whelpley');
}
}
You should also be able to set these values declaratively in the component decorator or potentially as part of the router. This issue is for coming up with a design for this service and implementing it in core. Once that is in place, the server side implementation of HeadService will be implemented on the Angular Universal repo:
vforv, ccaymaz and Marinski
Metadata
Metadata
Assignees
Labels
No labels