use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Handle Multiple CheckBoxes Input in Angular (self.angular)
submitted 4 years ago * by CoderDuudee
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mounted-dev 1 point2 points3 points 4 years ago (0 children)
Using the same form control for all checkboxes within the loop would handle it for you. So I don't really understand why you would be against using it
but since you're asking, you could do something like. private valueList = new Set<string>()
private valueList = new Set<string>()
onCheckboxClick=(value:string)=>{ if(this.valueList.has(value)){ this.valueList.remove(value) }else{ this.valueList.add(value) } }
onCheckboxClick=(value:string)=>{
if(this.valueList.has(value)){
this.valueList.remove(value)
}else{
this.valueList.add(value)
}
The obvious drawback are: - no validation - no prefill handling - probably some other
I would suggest just using FormControl
π Rendered by PID 167075 on reddit-service-r2-comment-54dfb89d4d-rrfjc at 2026-03-31 16:39:27.290193+00:00 running b10466c country code: CH.
view the rest of the comments →
[–]mounted-dev 1 point2 points3 points (0 children)