final lesson 1 The hero editor

This commit is contained in:
Костя 2025-06-18 11:53:30 +03:00
parent b6a7988fbe
commit da2e6c432c
2 changed files with 5 additions and 6 deletions

View File

@ -5,11 +5,9 @@ import { HeroesComponent } from "./heroes/heroes.component";
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrl: './app.component.css',
imports: [HeroesComponent],
styleUrls: ['./app.component.css'],
imports: [HeroesComponent]
})
export class App {
protected title = 'Tour of Heroes';
title = 'Tour of Heroes';
}
//тест коммита

View File

@ -1,12 +1,13 @@
import { Component } from '@angular/core';
import { Hero } from '../hero';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
@Component({
selector: 'app-heroes',
templateUrl: './heroes.component.html',
styleUrls: ['./heroes.component.css'],
imports: [CommonModule]
imports: [CommonModule, FormsModule]
})
export class HeroesComponent {
hero: Hero = {