mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
763314f300
PR Close #51536
12 lines
263 B
TypeScript
12 lines
263 B
TypeScript
import {Component} from '@angular/core';
|
|
import {ParentComponent} from './parent.component';
|
|
|
|
@Component({
|
|
standalone: true,
|
|
selector: 'app-child',
|
|
template: 'The child!',
|
|
})
|
|
export class ChildComponent {
|
|
constructor(private parent: ParentComponent) {}
|
|
}
|