step 5
This commit is contained in:
15
first-app/src/app/housing-location/housing-location.ts
Normal file
15
first-app/src/app/housing-location/housing-location.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import {Component, input} from '@angular/core'; // Importation de la fonction input() et des components
|
||||
import {HousingLocationInfo} from '../housinglocation'; // Interface
|
||||
@Component({
|
||||
selector: 'app-housing-location',
|
||||
imports: [],
|
||||
template: `
|
||||
<p>
|
||||
housing-location works!
|
||||
</p>
|
||||
`,
|
||||
styleUrls: ['./housing-location.css'],
|
||||
})
|
||||
export class HousingLocation {
|
||||
housingLocation = input.required<HousingLocationInfo>();
|
||||
}
|
||||
Reference in New Issue
Block a user