Last active
December 26, 2016 13:14
-
-
Save monkeyhouse/17e67d5bc8563a3560ee4e529722c5d8 to your computer and use it in GitHub Desktop.
install aurelia-http-fetch steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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