Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kellyselden/ember-data-fetch-support

Replaces $.ajax with fetch in ember-data
https://github.com/kellyselden/ember-data-fetch-support

Last synced: 16 days ago
JSON representation

Replaces $.ajax with fetch in ember-data

Awesome Lists containing this project

README

        

# ember-data-fetch-support

[![Greenkeeper badge](https://badges.greenkeeper.io/kellyselden/ember-data-fetch-support.svg)](https://greenkeeper.io/)
[![npm version](https://badge.fury.io/js/ember-data-fetch-support.svg)](https://badge.fury.io/js/ember-data-fetch-support)
[![Build Status](https://travis-ci.org/kellyselden/ember-data-fetch-support.svg?branch=master)](https://travis-ci.org/kellyselden/ember-data-fetch-support)

Replaces `$.ajax` with `fetch` in [`ember-data`](https://github.com/emberjs/data). Functions as a mixin for `ember-data` adapters. Uses [`ember-network`](https://github.com/tomdale/ember-network) for FastBoot support.

## Installation

`ember install ember-data-fetch-support`

## Usage

```js
import JSONAPIAdapter from 'ember-data/adapters/json-api';
import FetchSupport from 'ember-data-fetch-support/mixins/fetch-support';

export default JSONAPIAdapter.extend(FetchSupport);
```