Skip to content
This repository was archived by the owner on Sep 13, 2020. It is now read-only.

sutori/ember-cli-profitwell

Repository files navigation

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);
}

...

About

Ember CLI addon for integration with https://www.profitwell.com/

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors