worktile / ngx-planet

🚀🌍🚀A powerful, reliable, fully-featured and production ready Micro Frontend library for Angular.
http://planet.ngnice.com
MIT License
539 stars 66 forks source link

PlanetComponentLoader supports direct register of component types and load with component selector #286

Closed walkerkay closed 1 year ago

walkerkay commented 1 year ago

Describe alternatives you've considered

// in app1
export class AppModule {
    constructor(private planetComponentLoader: PlanetComponentLoader) {
        this.planetComponentLoader.register([App1ProjectListComponent]);
    }
}
// in app2
<ng-container *planetComponentOutlet="'app1-project-list'; app: 'app1'; initialState: { search: 'xxx' }"></ng-container>