0
在Angular CLI項目中包含諸如localForage這樣的外部庫的步驟是什麼!LocalForage和Angular-cli,導入外部庫的步驟
LocalForage:https://github.com/localForage/localForage
繼LocalForage
- 安裝包中提供的README.md文件:
npm install localforage
添加腳本到我angular.cli
"scripts": ["../node_modules/localforage/dist/localforage.min.js"],
3.現在我不得不進口localForage由打字稿
"import localForage from" localforage ";
但承認,我怎麼能導入localForage到我tsconfig.json?