Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* // 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,
});
* 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
});