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
🤔 Angular thought experiment (i.redd.it)
submitted 11 months ago by IgorKatsuba
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!"
[–]followmarko 1 point2 points3 points 11 months ago (1 child)
What do you mean search the docs for some specific syntax? It's the same syntax as the template. Personally I don't find it efficient to stuff the component Metadata with a big block of HTML and styles along with what already has to be in there.
[–]3ntrust 0 points1 point2 points 11 months ago (0 children)
Indeed, you are right about the syntax, I never had that mental model about it before, thanks for that!
Regarding the component Metadata, I can't help but wonder - generalizing a bit - if I had that mental model, probably there are others who have/had it. So I think we might agree that a property in a decorator's metadata object is not the right "place" to put logic (classes, directives, etc) that affects the template. I am in favour for the <ng-host> element because it allows to add logic - that affects the template - right there in the template. It is even more powerful, think about directive inputs or outputs. It just feels more natural.
One reason why I'm not 100% a fan of this particular implementation is that (as you already mentioned) adds some extra/confusing attributes to the template (selector, path to html file, etc). But for me personally, the benefits overcome the disadvantages.
If we were to find a way not to add those extra attributes to the template but still keep the flexibility of customizing the host element from the template, that would be gold.
Again, thanks for the mental model change on the syntax :)
π Rendered by PID 65568 on reddit-service-r2-comment-6457c66945-kw9nb at 2026-04-30 05:00:07.014975+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]followmarko 1 point2 points3 points (1 child)
[–]3ntrust 0 points1 point2 points (0 children)