Skip to content

Instantly share code, notes, and snippets.

@krunal
Created July 10, 2017 06:20
Show Gist options
  • Save krunal/aeef94ebcc0ace9e6241011ed3083c13 to your computer and use it in GitHub Desktop.
Save krunal/aeef94ebcc0ace9e6241011ed3083c13 to your computer and use it in GitHub Desktop.
<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