ferranJS / discordish

0 stars 1 forks source link

[Q] Is true lazy loading happening here? #3

Open vajahath opened 1 year ago

vajahath commented 1 year ago

https://github.com/ferranJS/discordish/blob/main/angular/src/main.ts#L35

Here the variables are already loaded. You are just referencing them right?

Should this be like:

loadChildren: () => import("path/to/component").then(theModule=>theModule.route)

Just asking out of my curiosity.

ferranJS commented 1 year ago

Hi! I think you are right. If I don't wait for the promise, then it is just "normal-loading" it. When I get back to this project I'll recheck everything. Thank you very much for commenting!