Compare commits

..

No commits in common. "da2e6c432c2816dc6652c4dcad6ceee82cdd4c7b" and "620a97cc800d0f4c4fc9094170f58861f1c9f9f2" have entirely different histories.

3 changed files with 6 additions and 11 deletions

View File

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

View File

@ -1,6 +1,3 @@
<h2>{{hero.name | uppercase}} Details</h2>
<div><span>id: </span>{{hero.id}}</div>
<div>
<label for="name">Hero name: </label>
<input id="name" [(ngModel)]="hero.name" placeholder="name">
</div>
<div><span>name: </span>{{hero.name}}</div>

View File

@ -1,13 +1,10 @@
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, FormsModule]
styleUrls: ['./heroes.component.css']
})
export class HeroesComponent {
hero: Hero = {