Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document example of ember-cli-head integration #208

Open
raido opened this issue Jan 15, 2021 · 1 comment
Open

Document example of ember-cli-head integration #208

raido opened this issue Jan 15, 2021 · 1 comment

Comments

@raido
Copy link
Contributor

raido commented Jan 15, 2021

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)

@raido
Copy link
Contributor Author

raido commented Jan 15, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant