3.0.0 • Published 6 years ago

ember-data-application-adapter-service v3.0.0

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

ember-data-application-adapter-service

Greenkeeper badge npm version Build Status Ember Version

Send AJAX through your adapter without building the URL

Installation

ember install ember-data-application-adapter-service

Usage

Convert

actions: {
  send() {
    let adapter = this.store.adapterFor('application');
    let host = adapter.get('host');
    let namespace = adapter.get('namespace');
    
    adapter.ajax(`${host}/${namespace}/my-url`);
  }
}

into

adapter: Ember.inject.service(),

actions: {
  send() {
    this.get('adapter').ajax('my-url');
  }
}

Contributing

Installation

  • git clone <repository-url>
  • cd ember-data-application-adapter-service
  • npm install

Linting

  • npm run lint:hbs
  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

3.0.0

6 years ago

2.0.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago