26 lines
765 B
TypeScript
26 lines
765 B
TypeScript
import {Component} from '@angular/core';
|
|
import {HousingLocation} from '../housing-location/housing-location'; //Importation du component ici pour l'intégrer à la page
|
|
|
|
import {HousingLocationInfo} from '../housinglocation'; // Importation de l'interface
|
|
|
|
@Component({
|
|
selector: 'app-home',
|
|
imports: [HousingLocation],
|
|
templateUrl: './home.html',
|
|
styleUrls: ['./home.css'],
|
|
})
|
|
|
|
export class Home {
|
|
readonly baseUrl = 'https://angular.dev/assets/images/tutorials/common';
|
|
housingLocation: HousingLocationInfo = {
|
|
id: 9999,
|
|
name: 'Test Home',
|
|
city: 'Test city',
|
|
state: 'ST',
|
|
photo: `${this.baseUrl}/example-house.jpg`,
|
|
availableUnits: 99,
|
|
wifi: true,
|
|
laundry: false,
|
|
};
|
|
}
|