How to use the ember-page-title/services/page-title-list.extend function in ember-page-title

To help you get started, we’ve selected a few ember-page-title examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adopted-ember-addons / ember-page-title / tests / dummy / app / components / page-title-pane / component.js View on Github external
import { A } from '@ember/array';
import Component from '@ember/component';
import { computed, set, get } from '@ember/object';
import PageTitleList from 'ember-page-title/services/page-title-list';

let TitleList = PageTitleList.extend({
  _removeExistingTitleTag() {
    return;
  }
});


export default Component.extend({

  tagName: '',

  titleList: computed({
    get() {
      return TitleList.create();
    }
  }),
github adopted-ember-addons / ember-page-title / app / services / page-title-list.js View on Github external
import PageTitleList from 'ember-page-title/services/page-title-list';
import config from '../config/environment';

function capitalize(key) {
  return key.charAt(0).toUpperCase() + key.slice(1);
}

let defaults = {};
['separator', 'prepend', 'replace'].forEach(function (key) {
  if (config.pageTitle && config.pageTitle[key]) {
    defaults[`default${capitalize(key)}`] = config.pageTitle[key];
  }
});

export default PageTitleList.extend(defaults);

ember-page-title

Page Titles for Ember applications

MIT
Latest version published 7 months ago

Package Health Score

67 / 100
Full package analysis