Skip to content

Instantly share code, notes, and snippets.

@francisrupert
Last active December 11, 2019 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francisrupert/36a5fc7896c39f0c6445179fc850b385 to your computer and use it in GitHub Desktop.
Save francisrupert/36a5fc7896c39f0c6445179fc850b385 to your computer and use it in GitHub Desktop.
Basic Angular DOM self
.outline { outline: 2px solid orangered; )
<button (click)="asdfasdf($event)">
asdfasdf
</button>
asdfasdf(event) {
let self = event.currentTarget;
self.classList.toggle('OUTLINE');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment