mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Instead of the deprecated tslint use eslint in the aio's example-lint script PR Close #43218
17 lines
427 B
TypeScript
17 lines
427 B
TypeScript
// #docregion
|
|
import { Component, Input } from '@angular/core';
|
|
|
|
import { Hero } from './hero';
|
|
|
|
@Component({
|
|
selector: 'app-hero-child',
|
|
template: `
|
|
<h3>{{hero.name}} says:</h3>
|
|
<p>I, {{hero.name}}, am at your service, {{masterName}}.</p>
|
|
`
|
|
})
|
|
export class HeroChildComponent {
|
|
@Input() hero!: Hero;
|
|
@Input('master') masterName = ''; // eslint-disable-line @angular-eslint/no-input-rename
|
|
}
|
|
// #enddocregion
|