How to use the ember-cli-flash/flash/object.create function in ember-cli-flash

To help you get started, we’ve selected a few ember-cli-flash 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 poteto / ember-cli-flash / addon / services / flash-messages.js View on Github external
const defaults = objectWithout(allDefaults, [

    const flashMessageOptions = assign({}, defaults, { flashService });

    for (let key in options) {
      const value = get(options, key);
      const option = this._getOptionOrDefault(key, value);

      set(flashMessageOptions, key, option);

    return FlashMessage.create(flashMessageOptions);