API Docs for: 0.25.0
Show:

HostAppNameMixin Class

Module: mixins
Parent Module: ember-osf

This mixin provides an attribute that holds the host app name, and is intended to be used with other ember-osf components.

Sample usage:

// components/componentA.js
import hostAppName from ‘ember-osf/mixins/host-app-name’;

export default Component.extend(hostAppName);
// components/ComponentB.js
import hostAppName from ‘ember-osf/mixins/host-app-name’;

export default Component.extend(hostAppName);

The above example will result in both component A and component B sharing the same attribute hostAppName.

Item Index

Properties

Properties

hostAppName

String

The name of the hosting app is stored in the config/environment.js. Use the package ember-get-config to gain access to the app's config file.