ember-fetch-adapter

A Network Adapter Service based on Ember RFC #171.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ember-fetch-adapter
1190.4.35 years ago5 years agoMinified + gzip package size for ember-fetch-adapter in KB

Readme

ember-fetch-adapter
Build Status Ember Observer Score npm version
A Network Adapter Service based on https://github.com/emberjs/rfcs/pull/171

Installation

ember install ember-fetch-adapter

Usage

import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default Route.extend({
  adapter: service(),

  model() {
    return this.adapter.fetch({ url: 'items' }).json();
  }
});

Contributing

Installation

  • git clone <repository-url>
  • cd ember-fetch-adapter
  • yarn install

Linting

  • yarn lint:js
  • yarn 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.