docs: rename component for constructor example (#30845)

PR Close #30845
This commit is contained in:
Pandiyan Murugan 2019-06-04 17:44:31 +05:30 committed by Misko Hevery
parent 8154433130
commit 3ed7463ad7
1 changed files with 2 additions and 2 deletions

View File

@ -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;