Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Design][Discussion] Modules #103

Open
basedalexander opened this issue Dec 2, 2017 · 1 comment
Open

[Feature][Design][Discussion] Modules #103

basedalexander opened this issue Dec 2, 2017 · 1 comment

Comments

@basedalexander
Copy link
Member

I've been thinking about creating additional api for maintaining hierarchical containers through Modules. The philosophy is similar to the ones used in angular and Nest.js.

Motivation. Encapsulating related services and other components into modules. Example:

...


@Module({
    components: [
        NavigationComponent,
        SomeService,
        SomeManager
    ],
    exports: [
        NavigationComponent
    ]
})
export class NavigationModule {
    
}

@Module({
    import: [
        HttpModule,
        ApiModule,
        NavigationModule
    ],
    components: [
        AppComponent
    ],
    bootstrap: [
        AppComponent
    ]
})
export class AppModule {
    
}
@andrei-tatar
Copy link

Isn't this (functionality wise) the same as using child containers/scopes? Would the decorator be a wrapper over creating a child container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants