Ajout du modèle Car et du composant permettant de l'afficher.

This commit is contained in:
Florian THIERRY
2023-02-21 11:48:27 +01:00
parent 48ff32a30b
commit 95fb661d7a
11 changed files with 126 additions and 4 deletions

View File

@@ -1 +1,4 @@
<p>promises-example works!</p>
<div class="component">
<h1>Les promesses</h1>
<app-car [value]="car"></app-car>
</div>

View File

@@ -1,4 +1,5 @@
import { Component } from '@angular/core';
import {Car} from "../core/model/car";
@Component({
selector: 'app-promises-example',
@@ -6,5 +7,11 @@ import { Component } from '@angular/core';
styleUrls: ['./promises-example.component.scss']
})
export class PromisesExampleComponent {
car?: Car = {
id: '1234567890',
brand: 'Toyota',
model: 'Yaris',
power: 12,
numberOfSeats: 5
};
}