Skip to content

Dynamically Module Loader #17287

Closed
Closed

Description

@pedro3900

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x ] feature request
[x] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
This is not a bug, it is some feature that I don´t know if it is possible, right now when you want to include a module/component, you have to defined it manually when you implement it, at his parent or principal module, how it is normal.
Expected behavior
I would like to include modules like plugins. I would like that angular can scan one folder and add modules dynamically, I don know if it is possible with angular core, or with any npm module or custom implementation.
Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?
I would like this feature to have a more modular and powerful application.

Please tell us about your environment:

  • Angular version: 2.0.X
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]
  • Node (for AoT issues): node --version =

Activity

  1. chuckjaz commented on Jul 11, 2017

    @chuckjaz
    Contributor

    This sounds similar to #17267. Does #17267 encompass your suggestion? If not, what is not covered?

  2. pedro3900 commented on Aug 2, 2017

    @pedro3900
    Author

    It is not exactly the same my target is for example to have a main component who scan a certain folder and include modules inside this folder.

    I am finding 2 ways:
    Do it in execution time dinamically (the idea is to build something like a plugin system, we can add a new module to a folder and this functionality will be include).

    The other way is do it in build time, and use something like webpack or gulp to load dinamically modules in certain folders. In this way the scan will be done by webpack or gulp not by angular code.

  3. added this to the Backlog milestone on Jan 23, 2018
  4. jelbourn commented on Oct 9, 2020

    @jelbourn
    Contributor

    Tracking the main underlying concern here in #18093

  5. angular-automatic-lock-bot commented on Nov 9, 2020

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimecore: NgModulefeatureLabel used to distinguish feature request from other issues

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions