* docs(displaying-data/dart): proofread - Dart prose simplified by removing discussion of "additions to pubspec.yaml" which are no longer necessary given the current state of QuickStart. - E2e suites passed: public/docs/_examples/displaying-data/dart public/docs/_examples/displaying-data/ts Contributes to #1598 and #1508. * docs(displaying-data/ts): proofread - TS prose updated to include @kwalrath's revisions from a while ago, with some of my edits as well. - E2e suites passed: public/docs/_examples/displaying-data/dart public/docs/_examples/displaying-data/ts * docs(displaying-data/ts): post-review edits
		
			
				
	
	
		
			20 lines
		
	
	
		
			368 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			368 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Component } from '@angular/core';
 | |
| 
 | |
| @Component({
 | |
|   selector: 'my-app-ctor',
 | |
|   template: `
 | |
|     <h1>{{title}} [Ctor version]</h1>
 | |
|     <h2>My favorite hero is: {{myHero}}</h2>
 | |
|     `
 | |
| })
 | |
| // #docregion class
 | |
| export class AppCtorComponent {
 | |
|   title: string;
 | |
|   myHero: string;
 | |
| 
 | |
|   constructor() {
 | |
|     this.title = 'Tour of Heroes';
 | |
|     this.myHero = 'Windstorm';
 | |
|   }
 | |
| }
 |