Created
July 10, 2017 06:20
-
-
Save krunal/aeef94ebcc0ace9e6241011ed3083c13 to your computer and use it in GitHub Desktop.
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
<ion-list padding> | |
<button ion-button block (click)="startScanning()">scan</button> | |
<ion-list-header> | |
Paired Devices | |
</ion-list-header> | |
<ion-item *ngFor="let device of pairedDevices"> | |
{{device.name}} | |
</ion-item> | |
<button ion-button block (click)="disconnect()">Disconnect</button> | |
<ion-list-header> | |
availlable Devices | |
</ion-list-header> | |
<ion-item *ngFor='let device of unpairedDevices'> | |
<span (click)="selectDevice(device.address)"> | |
{{device.name}} | |
</span> | |
</ion-item> | |
<ion-spinner name="crescent" *ngIf="gettingDevices"></ion-spinner> | |
</ion-list> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment