我想在應(yīng)用程序中使用detect-mobile包(https://github.com/hgoebl/mobile-detect.js/tree/v1.4.4)Angular。但它不能以通常的方式導(dǎo)入。我已經(jīng)嘗試了以下每一項(xiàng):import { MobileDetect } from 'mobile-detect';import MobileDetect from 'mobile-detect';import {} from 'mobile-detect';移動(dòng)檢測(cè)d.ts文件具有以下結(jié)構(gòu):我做錯(cuò)了什么,應(yīng)該如何導(dǎo)入?此外,我將不勝感激解釋此類軟件包與其他軟件包的不同之處。Stackblitz:https ://stackblitz.com/edit/angular-3qptjt
從 npm 包中導(dǎo)入 Angular 模塊
開(kāi)心每一天1111
2021-11-04 16:08:32