How to use the ember-get-config.appName function in ember-get-config

To help you get started, we’ve selected a few ember-get-config 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 CenterForOpenScience / ember-osf-web / app / mixins / host-app-name.js View on Github external
* // components/ComponentB.js
 * import hostAppName from ‘ember-osf-web/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.
 * @class HostAppNameMixin
 */
export default Ember.Mixin.create({
    /**
     * 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.
     * @property {String} hostAppName
     */
    hostAppName: config.appName,
});
github CenterForOpenScience / ember-osf / addon / mixins / host-app-name.js View on Github external
* 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.
 *
 */

export default Ember.Mixin.create({
    /**
     * 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.
     * @property {String} hostAppName
     */
    hostAppName: config.appName
});