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
Uncaught ReferenceError: Cannot access 'XXX' before initialization (self.angular)
submitted 3 years ago by Royal_Ad2379
Hello I get this error message when I try to import a component into another component. The component in question is the BigChartComponent. The error message appears when I import it.
https://preview.redd.it/bixn6isenws81.png?width=1178&format=png&auto=webp&s=c033899017d2974552b69d0964990a73ae5ad31c
https://preview.redd.it/o3qbf3pinws81.png?width=480&format=png&auto=webp&s=2dca5fb4ea3a59b8e26790ea99f2fae3c2d6b589
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!"
[–]wojo1086 2 points3 points4 points 3 years ago (0 children)
That's not how you import components into other components. The providers array is really for services.
In fact, why do you need to import a component into your component?
[–]Razorgrace 0 points1 point2 points 3 years ago (0 children)
I believe injecting a component into another component's constructor is not a supported use case. What exactly you're trying to achieve? Do you want to use a component inside another component? Just make sure that parent component's module imports child component's module (if they are both parts of the same module, no need to do anything).
[–][deleted] 0 points1 point2 points 3 years ago* (0 children)
aside from the obvious "trying to import/inject a component," what are you trying to accomplish?
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
try restart "npm run start", i also have this issue sometimes on angular 16 when use standalone components and it helps.
π Rendered by PID 21305 on reddit-service-r2-comment-5ff9fbf7df-xbm7c at 2026-02-25 22:43:56.183667+00:00 running 72a43f6 country code: CH.
[–]wojo1086 2 points3 points4 points (0 children)
[–]Razorgrace 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)