Skip to content

Component Service Interaction #9

@snewcomer

Description

@snewcomer

In order to enable a more flexible approach, we could potentially define a restricted set of meta keys that are emitted to the template...that allows the user to set on the head-data service from anywhere...like a component for example.

// component.js

this.headData.set('descriptionContent', 'My description');

So something like description would be an array of loc keys

  descriptionContent: '',
  description: computed('routeName', 'descriptionContent', function() {...});

So in the end we have a route approach + a set approach + default config approach. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions