diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 34e04e2..a38113b 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,7 +1,7 @@ import { Component } from '@angular/core'; -import {Child1Component} from "./child-1/child-1.component"; -import {Child2Component} from "./child-2/child-2.component"; -import {ParentComponent} from "./parent/parent.component"; +import {Child1Component} from "./child/child-1/child-1.component"; +import {Child2Component} from "./child/child-2/child-2.component"; +import {ParentComponent} from "./child/parent/parent.component"; import {HotelsComponent} from "./hotel/hotels.component"; @Component({ diff --git a/src/app/child-1/child-1.component.html b/src/app/child/child-1/child-1.component.html similarity index 100% rename from src/app/child-1/child-1.component.html rename to src/app/child/child-1/child-1.component.html diff --git a/src/app/child-1/child-1.component.ts b/src/app/child/child-1/child-1.component.ts similarity index 100% rename from src/app/child-1/child-1.component.ts rename to src/app/child/child-1/child-1.component.ts diff --git a/src/app/child-2/child-2.component.html b/src/app/child/child-2/child-2.component.html similarity index 100% rename from src/app/child-2/child-2.component.html rename to src/app/child/child-2/child-2.component.html diff --git a/src/app/child-2/child-2.component.ts b/src/app/child/child-2/child-2.component.ts similarity index 100% rename from src/app/child-2/child-2.component.ts rename to src/app/child/child-2/child-2.component.ts diff --git a/src/app/parent/parent.component.html b/src/app/child/parent/parent.component.html similarity index 100% rename from src/app/parent/parent.component.html rename to src/app/child/parent/parent.component.html diff --git a/src/app/parent/parent.component.ts b/src/app/child/parent/parent.component.ts similarity index 100% rename from src/app/parent/parent.component.ts rename to src/app/child/parent/parent.component.ts diff --git a/src/app/hotel/hotels.component.ts b/src/app/hotel/hotels.component.ts index d0ddfd4..8bf634c 100644 --- a/src/app/hotel/hotels.component.ts +++ b/src/app/hotel/hotels.component.ts @@ -1,5 +1,4 @@ import {Component} from "@angular/core"; -import {NgFor, NgIf} from "@angular/common"; import {HotelComponent} from "./hotel.component"; import {Hotel} from "./hotel"; import {FormsModule} from "@angular/forms"; @@ -10,24 +9,36 @@ import {FormsModule} from "@angular/forms";
-