-
-
Save robwormald/e09df5ddc6ccf4501e572c37b77dc088 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 {NgModule} from '@angular/core' | |
import {ModuleB} from './b' | |
@Component({ | |
selector: 'component-a', | |
template: ` | |
<component-b></component-b> | |
` | |
}) | |
export class ComponentA {} | |
@NgModule({ | |
imports: [ ModuleB ], | |
declarations: [ ComponentA ] | |
}) | |
export class ModuleA {} |
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 {NgModule} from '@angular/core' | |
@Component({ | |
selector: 'component-b' | |
}) | |
export class ComponentB {} | |
@NgModule({ | |
declarations: [ ComponentB ], | |
exports: [ ComponentB ] | |
}) | |
export class ModuleB { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment