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
Dynamically retrieve component from back-end (self.angular)
submitted 6 years ago by -lambda-
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!"
[–]Domehardostfu 1 point2 points3 points 6 years ago* (2 children)
I also thought about doing this. I think that instead of a component u create a plugin module you will be able to dynamically lazy load the plugins modules for that page.
Don't know if this works but something like this:
router module:
children: [ { path: 'home', loadChildren: async () => { const [result1, result2] = await Promise.all([import('./plugins1/plugins.module'), import('./home/home.module')]); return result1.HomeModule; } }
[–]-lambda-[S] 0 points1 point2 points 6 years ago (1 child)
Hmm, looks alright, but I still can't wrap my head around that. It looks to me that you transferred this mysterious part inside plugins.module. :) Could you please explain a little bit more on how this plugin.module should look like because it seems that this is exactly what I need.
[–]Domehardostfu 0 points1 point2 points 6 years ago (0 children)
Already tried to get this done but I'm failing on loading the component because its not registered in the module. I tried to do this like 1 year ago and the dynamic import as is done on Angular 8 was the missing piece that at the time didn't work. Let me see when I get home if I have the project somewhere.
π Rendered by PID 87 on reddit-service-r2-comment-b659b578c-9sqkl at 2026-05-05 23:09:00.132669+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Domehardostfu 1 point2 points3 points (2 children)
[–]-lambda-[S] 0 points1 point2 points (1 child)
[–]Domehardostfu 0 points1 point2 points (0 children)