【文件属性】:
文件名称:angular-web-bluetooth:Angular缺少的Web蓝牙模块
文件大小:1.99MB
文件格式:ZIP
更新时间:2021-01-30 02:19:39
javascript angular typescript html5 web-bluetooth
Angular缺少的Web蓝牙模块
纱线
yarn add @manekinekko/angular-web-bluetooth @types/web-bluetooth
或NPM
npm i -S @manekinekko/angular-web-bluetooth @types/web-bluetooth
_注意:还要确保@types/web-bluetooth已正确安装在node_modules 。 _
用它
1)导入WebBluetoothModule模块
import { NgModule } from '@angular/core' ;
import { WebBluetoothModule } from '@manekinekko/angular-web-bluetooth' ;
@ NgModule ( {
imports : [
//...,
WebBluetoothModule . forRoot ( {
enableTracing : true // or false, this will enable logs in the