Skip to content

loading angular modules as plugins  #21583

Closed

Description

@sunilpes

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Loading angular modules as plugins during the run-time is not supported officially. We have a workaround to achieve it using '@angular/compiler' module. I am not happy to use low-level API of angular in my project.

when I was working with angular.js version 1.x. we were using ocLazyLoad library to load and register the angular module during runtime.

Expected behavior

Can we expect dynamic loading and registering the module as plugins with angular? This would really help a lot of use cases.

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

We are trying to build a pluggable editor tool using angular. Plugins are angular modules. Host environment i.e editor app module has no prior knowledge about the plugins(modules with its own components, services) which is going to instantiate. All plugins are registered during the runtime.

Environment


Angular version: X.Y.Z


Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Activity

  1. mlc-mlapis commented on Jan 17, 2018

    @mlc-mlapis
    Contributor

    @sunilpes ... this theme (dynamic loading of lazy loaded modules) is discussed in several issues, just go through ...

  2. added
    featureLabel used to distinguish feature request from other issues
    on Feb 8, 2018
  3. added this to the Backlog milestone on Feb 8, 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 runtimefeatureLabel 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