docs: rename component for constructor example (#30845)
PR Close #30845
This commit is contained in:
parent
8154433130
commit
3ed7463ad7
|
@ -1,14 +1,14 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-ctor',
|
selector: 'app-root',
|
||||||
template: `
|
template: `
|
||||||
<h1>{{title}} [Ctor version]</h1>
|
<h1>{{title}} [Ctor version]</h1>
|
||||||
<h2>My favorite hero is: {{myHero}}</h2>
|
<h2>My favorite hero is: {{myHero}}</h2>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
// #docregion class
|
// #docregion class
|
||||||
export class AppCtorComponent {
|
export class AppComponent {
|
||||||
title: string;
|
title: string;
|
||||||
myHero: string;
|
myHero: string;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue