angular/aio/content/examples/component-styles/src/app/hero-details.component.ts
Kristiyan Kostadinov e86a1d3441 docs: make all examples compatible with strict mode (#41999)
Turns on the `strict` compiler flag and resolves the compilation errors in the various AIO examples.

PR Close #41999
2021-05-17 10:42:18 -07:00

15 lines
362 B
TypeScript

import { Component, Input } from '@angular/core';
import { Hero } from './hero';
@Component({
selector: 'app-hero-details',
template: `
<h2>{{hero.name}}</h2>
<app-hero-team [hero]=hero></app-hero-team>
<ng-content></ng-content>
`,
styleUrls: ['./hero-details.component.css']
})
export class HeroDetailsComponent {
@Input() hero!: Hero;
}