How to use the ember-fetch/ajax function in ember-fetch

To help you get started, we’ve selected a few ember-fetch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-cli / ember-fetch / tests / dummy / app / routes / index.js View on Github external
model: function() {
    return hash({
      fetch: fetch('/omg.json').then(function(request) {
        return request.json();
      }),
      ajax: ajax('/omg.json')
    });
  }
});
github ember-cli / ember-fetch / test / fixtures / dummy / app / routes / index.js View on Github external
model: function() {
    return hash({
      fetch: fetch('/omg.json').then(function(request) {
        return request.json();
      }),
      request: fetch(new Request('/omg.json')).then(function(request) {
        return request.json();
      }),
      ajax: ajax('/omg.json')
    });
  }
});

ember-fetch

HTML5 Fetch polyfill (as an ember-addon)

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis