How to use the @ember/string.decamelize function in @ember/string

To help you get started, we’ve selected a few @ember/string 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 TryGhost / Ghost-Admin / app / serializers / application.js View on Github external
keyForAttribute(attr) {
        return decamelize(attr);
    },
github Fabriquartz / ember-railio-grid / addon / utils / api-data-manager.js View on Github external
properties = properties.map((property) => {
          return decamelize(property).replace('.', '_');
        });
github sandydoo / ember-google-maps / addon / mixins / register-events.js View on Github external
function _addEventListener(target, originalEventName, action, payload = {}) {
  let eventName = decamelize(originalEventName).slice(3);

  function callback(googleEvent) {
    let params = {
      event: window.event,
      googleEvent,
      eventName,
      target,
      ...payload,
    };

    join(target, action, params);
  }

  let listener = google.maps.event.addDomListener(target, eventName, callback);

  return {
github hashicorp / vault / ui / app / serializers / replication-attributes.js View on Github external
keyForAttribute: function(attr) {
    return decamelize(attr);
  },
});
github Fabriquartz / ember-railio-grid / addon / utils / api-data-manager.js View on Github external
wrap(sorting.key).forEach((key) => {
          let sortKey = decamelize(key).replace('.', '_');
          query.filter.sorts.push({ name: sortKey, dir: sortDir });
        });
      });
github sandydoo / ember-google-maps / addon / utils / options-and-events.js View on Github external
function addEventListener(target, originalEventName, action, payload = {}) {
  let eventName = decamelize(originalEventName).slice(3);

  function callback(googleEvent) {
    let params = {
      event: window.event,
      googleEvent,
      eventName,
      target,
      ...payload,
    };

    join(target, action, params);
  }

  let listener = google.maps.event.addDomListener(target, eventName, callback);

  return {
github hashicorp / vault / ui / app / serializers / cluster.js View on Github external
keyForAttribute: function(attr) {
    return decamelize(attr);
  },
github hashicorp / vault / ui / app / serializers / ssh.js View on Github external
keyForAttribute: function(attr) {
    return decamelize(attr);
  },
github hashicorp / vault / ui / app / serializers / application.js View on Github external
keyForAttribute: function(attr) {
    return decamelize(attr);
  },

@ember/string

A set of utilities to transform strings

MIT
Latest version published 5 months ago

Package Health Score

73 / 100
Full package analysis

Similar packages