From bd8432e0787e0f0428e04cfdf8e688dd28c614bb Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Tue, 4 Nov 2025 11:44:42 +0100 Subject: [PATCH] update step 13 --- first-app/src/app/details/details.html | 29 +++++++++++++++++---- first-app/src/app/details/details.ts | 36 ++------------------------ 2 files changed, 26 insertions(+), 39 deletions(-) diff --git a/first-app/src/app/details/details.html b/first-app/src/app/details/details.html index 949793c..6b9a056 100644 --- a/first-app/src/app/details/details.html +++ b/first-app/src/app/details/details.html @@ -1,13 +1,32 @@
- Exterior photo of {{ housingLocation?.name }} -

{{ housingLocation?.name }}

-

{{ housingLocation?.city }}, {{ housingLocation?.state }}

-

About this housing location

+ Exterior photo of {{ housingLocation?.name }} +
+

{{ housingLocation?.name }}

+

{{ housingLocation?.city }}, {{ housingLocation?.state }}

+
+
+

About this housing location

  • Units available: {{ housingLocation?.availableUnits }}
  • Does this location have wifi: {{ housingLocation?.wifi }}
  • Does this location have laundry: {{ housingLocation?.laundry }}
+
+

Apply now to live here

+
+ + + + + + + +
+
\ No newline at end of file diff --git a/first-app/src/app/details/details.ts b/first-app/src/app/details/details.ts index ec45021..af0ccef 100644 --- a/first-app/src/app/details/details.ts +++ b/first-app/src/app/details/details.ts @@ -6,42 +6,10 @@ import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; @Component({ selector: 'app-details', imports: [ReactiveFormsModule], - template: ` -
- Exterior photo of {{ housingLocation?.name }} -
-

{{ housingLocation?.name }}

-

{{ housingLocation?.city }}, {{ housingLocation?.state }}

-
-
-

About this housing location

-
    -
  • Units available: {{ housingLocation?.availableUnits }}
  • -
  • Does this location have wifi: {{ housingLocation?.wifi }}
  • -
  • Does this location have laundry: {{ housingLocation?.laundry }}
  • -
-
-
-

Apply now to live here

-
- - - - - - - -
-
-
- `, + templateUrl: 'details.html', styleUrls: ['./details.css'], }) + export class Details { route: ActivatedRoute = inject(ActivatedRoute); housingService = inject(HousingService);