Hi, may somebody can help?
I use following method to connect to a bt device:
connectBtDevice(device) {
this.bluetoothSerial.connect(device.id).subscribe(
res => {
console.debug("Connected: " + " " + JSON.stringify(res));
this.isConnected = true;
},
err => {
console.debug("Unable to connect: " + " " + err);
this.isConnected = false;
}
);
}
in the angular view i have a button ‘diconnect’, which I hide with the following directive
*ngIf=“isConnected”
This works, but I have to reload the page manually, the angular view does not update automatically.
May somebody knows the issue?