docs: correct component names in NgComponentOutlet examples (#33068)
PR Close #33068
This commit is contained in:
parent
b934898e45
commit
0dcff40ec2
|
@ -19,7 +19,7 @@ export class HelloWorld {
|
||||||
selector: 'ng-component-outlet-simple-example',
|
selector: 'ng-component-outlet-simple-example',
|
||||||
template: `<ng-container *ngComponentOutlet="HelloWorld"></ng-container>`
|
template: `<ng-container *ngComponentOutlet="HelloWorld"></ng-container>`
|
||||||
})
|
})
|
||||||
export class NgTemplateOutletSimpleExample {
|
export class NgComponentOutletSimpleExample {
|
||||||
// This field is necessary to expose HelloWorld to the template.
|
// This field is necessary to expose HelloWorld to the template.
|
||||||
HelloWorld = HelloWorld;
|
HelloWorld = HelloWorld;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ export class CompleteComponent {
|
||||||
injector: myInjector;
|
injector: myInjector;
|
||||||
content: myContent"></ng-container>`
|
content: myContent"></ng-container>`
|
||||||
})
|
})
|
||||||
export class NgTemplateOutletCompleteExample {
|
export class NgComponentOutletCompleteExample {
|
||||||
// This field is necessary to expose CompleteComponent to the template.
|
// This field is necessary to expose CompleteComponent to the template.
|
||||||
CompleteComponent = CompleteComponent;
|
CompleteComponent = CompleteComponent;
|
||||||
myInjector: Injector;
|
myInjector: Injector;
|
||||||
|
@ -73,7 +73,7 @@ export class AppComponent {
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [BrowserModule],
|
imports: [BrowserModule],
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent, NgTemplateOutletSimpleExample, NgTemplateOutletCompleteExample, HelloWorld,
|
AppComponent, NgComponentOutletSimpleExample, NgComponentOutletCompleteExample, HelloWorld,
|
||||||
CompleteComponent
|
CompleteComponent
|
||||||
],
|
],
|
||||||
entryComponents: [HelloWorld, CompleteComponent]
|
entryComponents: [HelloWorld, CompleteComponent]
|
||||||
|
|
Loading…
Reference in New Issue