angular-cn/aio/content/examples/errors/cyclic-imports/child.component.ts

8 lines
240 B
TypeScript

import { Component } from '@angular/core';
import { ParentComponent } from './parent.component';
@Component({selector: 'app-child', template: 'The child!'})
export class ChildComponent {
constructor(private parent: ParentComponent) {}
}