Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kellyselden/ember-data-fetch-support
- Owner: kellyselden
- License: mit
- Created: 2016-10-12T21:46:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-21T23:31:42.000Z (about 7 years ago)
- Last Synced: 2024-12-21T09:25:28.046Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 139 KB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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);
```