Skip to content

Instantly share code, notes, and snippets.

@robwormald
Last active November 11, 2016 04:41
Show Gist options
  • Save robwormald/e09df5ddc6ccf4501e572c37b77dc088 to your computer and use it in GitHub Desktop.
Save robwormald/e09df5ddc6ccf4501e572c37b77dc088 to your computer and use it in GitHub Desktop.
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 {}
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