An Ember Ecosystem
For Spree Commerce

spree-ember-core

The Spree service is the central place a Spree Ember developer will interact with Spree, via Spree Ember. The core object is injected into the host application's routes & controllers, and is responsible for persisting data to Local Storage, communicating with your Spree backend, Acting as a Registry for other Spree Ember packages, and Acting as an Event Bus for your application Frontend, and providing a seperate Store.

Properties

Show Private Properties

config

Object

A copy of the "spree" entry in the Host Application environment config.


Default: {}

countries

Computed

A computed property that returns all of the countries (and states) set up in Spree's backend.


environment

Object

A copy of the Host Application's current environment name.


Default: 'development'

localStorageKey

String

The Local Storage key we use to Restore and Persist data across browser refreshes.


Default: "spree-ember"