ember-cli-profitwell
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "ember-cli-profitwell", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "An Ember CLI addon for integrating with ProfitWell", | ||
@@ -27,3 +27,3 @@ "repository": "https://github.com/sutori/ember-cli-profitwell", | ||
"ember-ajax": "^3.0.0", | ||
"ember-cli": "2.13.1", | ||
"ember-cli": "2.14.0", | ||
"ember-cli-dependency-checker": "^2.0.1", | ||
@@ -44,3 +44,3 @@ "ember-cli-eslint": "^4.0.0", | ||
"ember-sinon-qunit": "^1.6.0", | ||
"ember-source": "~2.13.0", | ||
"ember-source": "~2.14.1", | ||
"ember-welcome-page": "^3.0.0", | ||
@@ -47,0 +47,0 @@ "loader.js": "^4.2.3" |
# ember-cli-profitwell | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/sutori/ember-cli-profitwell.svg)](https://greenkeeper.io/) | ||
This addon inserts the [ProfitWell][profit-well] script into the | ||
@@ -29,1 +31,18 @@ `<head>` of the page for you. | ||
[profit-well]: https://www.profitwell.com | ||
## Usage | ||
The addon exposes a `profitwell` service through which you can set the email of | ||
the current logged in user. | ||
```javascript | ||
// some component/controller/route | ||
profitwell: Ember.inject.service(), | ||
onLogin(userEmail) { | ||
this.get('profitwell').setUserEmail(userEmail); | ||
} | ||
... | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
203127
48