A Network Adapter Service based on emberjs/rfcs#171
ember install ember-fetch-adapter
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();
}
});
git clone <repository-url>
cd ember-fetch-adapter
yarn install
yarn lint:js
yarn lint:js --fix
-
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
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.