Created
March 26, 2018 17:26
-
-
Save alxhub/29aee4dd6a761f89f949eed61516c43d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {LibModule} from 'lib'; | |
@Component({ | |
template: '<component-from-sublib></component-from-sublib>', | |
}) | |
export class AppComponent { | |
// Ivy generated: | |
static ngComponentDef = defineComponent({ | |
components: [ | |
// To know the set of dependencies to list here, we need to | |
// know the AppModule selector map. To gather that selector | |
// map, we need information from both lib.d.ts and sublib.d.ts, | |
// even though sublib.ts is not a direct dependency of app.ts | |
], | |
template: function AppComponent_Template(cm) { ... } | |
}); | |
} | |
@NgModule({ | |
imports: [LibModule] | |
}) | |
export class AppModule {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {SublibModule} from './sublib'; | |
export declare class LibModule { | |
static ngSelectorMap: SelectorMap<{ | |
exports: [SublibModule] | |
}>; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {SublibModule} from 'sublib'; | |
@NgModule({ | |
exports: [SublibModule] | |
}) | |
export class LibModule {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export declare class SublibComponent { | |
// component metadata here | |
} | |
export declare class SublibModule { | |
static ngSelectorMap: SelectorMap<{ | |
selectors: [Selector<"component-from-sublib", SublibComponent>] | |
}>; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'component-from-sublib', | |
template: '...', | |
}) | |
@NgModule({ | |
declarations: [SublibComponent], | |
}) | |
export class SublibModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment