Last active
December 11, 2019 18:57
-
-
Save francisrupert/36a5fc7896c39f0c6445179fc850b385 to your computer and use it in GitHub Desktop.
Basic Angular DOM self
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
.outline { outline: 2px solid orangered; ) |
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
<button (click)="asdfasdf($event)"> | |
asdfasdf | |
</button> |
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
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