0.1.3 • Published 6 years ago

ember-cli-profitwell v0.1.3

Weekly downloads
97
License
MIT
Repository
github
Last release
6 years ago

ember-cli-profitwell

Greenkeeper badge

This addon inserts the ProfitWell script into the <head> of the page for you.

Installation

ember install ember-cli-profitwell

After installing the addon, you MUST provide a configuration value for your authentication token.

Configuration

You can configure some of the variables used in the inserted script.

// config/environment.js

ENV['ember-cli-profitwell'] = {
  enabledEnvironments: ['production'], // default
  authToken: 'YourAuthToken'           // required, no default
};

Usage

The addon exposes a profitwell service through which you can set the email of the current logged in user.

// some component/controller/route

profitwell: Ember.inject.service(),

onLogin(userEmail) {
  this.get('profitwell').setUserEmail(userEmail);
}

...
0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago