Skip to content

Document example of ember-cli-head integration #208

@raido

Description

@raido

Integration with ember-cli-head can be done with v6.1.0 like this:

// app/services/page-title.js

import EmberPageTitleService from 'ember-page-title/services/page-title';

export default class PageTitleService extends EmberPageTitleService {
  @service headData;

  titleDidUpdate(title) {
    this.headData.ogTitle = title;
  }
}

Would be nice to include this into README / public docs app.

Originally posted by @raido in #201 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions