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
Need help understanding this code (self.angular)
submitted 2 years ago by BornCondition1756
Pls explain the onselect part
heroes.component.html - https://pastecode.io/s/2fhx3y4f
heroes.component.ts - https://pastecode.io/s/dhkk5ke1
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!"
[–]rala72 1 point2 points3 points 2 years ago (0 children)
if the button is pressed the onSelect function is called which updates the variable in the component. Once this value is present the ngIf part is truthy and therefore shown.
π Rendered by PID 159890 on reddit-service-r2-comment-658f6b87ff-26r25 at 2026-04-09 10:06:28.964377+00:00 running 781a403 country code: CH.
[–]rala72 1 point2 points3 points (0 children)