Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Attaching change event listener on Toggle #6713

Answered by coryrylan
tgeorgiev asked this question in Q&A
Discussion options

You must be logged in to vote

Yes you would listen to the native input events. The benefit of projecting the input is it allows it to work like any other native html input. If you are using angular you can use angular forms or the event binding on the native change event.

https://stackblitz.com/edit/node-lckcvh?file=src%2Fapp%2Fapp.component.html

https://coryrylan.com/blog/building-forms-with-angular-and-clarity-design

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tgeorgiev
Comment options

Answer selected by coryrylan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: support Support, implementation or questions
2 participants
Converted from issue

This discussion was converted from issue #6712 on February 18, 2022 21:28.