feat(challenge15): function overload

This commit is contained in:
thomas laforge
2023-01-19 22:16:17 +01:00
parent 3bbd4cf4dd
commit fa53d48b09
13 changed files with 276 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import { Component } from '@angular/core';
import { createVehicle } from './teacher.utils';
@Component({
standalone: true,
selector: 'app-root',
template: ``,
})
export class AppComponent {
car = createVehicle('car', 'diesel');
bus = createVehicle('bus', undefined, 20);
boat = createVehicle('boat', undefined, 300, true);
bicycle = createVehicle('bicycle');
}