Ajout du modèle Car et du composant permettant de l'afficher.
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user