Instantly share code, notes, and snippets.

Embed
What would you like to do?
<div class="draw-buttons">
<button [ngClass]="{'selected': selectedDrawType === 'Point'}" (click)="drawPointSelected()">Point</button>
<button [ngClass]="{'selected': selectedDrawType === 'Polygon'}" (click)="drawPolygonSelected()">Polygon</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment