Skip to content

Instantly share code, notes, and snippets.

@monkeyhouse
Last active December 26, 2016 13:14
Show Gist options
  • Save monkeyhouse/17e67d5bc8563a3560ee4e529722c5d8 to your computer and use it in GitHub Desktop.
Save monkeyhouse/17e67d5bc8563a3560ee4e529722c5d8 to your computer and use it in GitHub Desktop.
install aurelia-http-fetch steps
steps to install fetch
npm install whatwg-fetch --save
npm install aurelia-fetch-client --save
in aurelia.json, add thse to the vendor-bundle.js
"aurelia-fetch-client",
{
"name": "whatwg-fetch",
"path": "../node_modules/whatwg-fetch",
"main": "fetch"
},
in main.ts, add this line
import 'whatwg-fetch';
and install typings libraries
typings install dt~whatwg-fetch --global --save
typings install dt~whatwg-streams --global --save
typings install github:RomkeVdMeulen/URLSearchParams --global --save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment