mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 22:03:03 -05:00
feat(challenge15): function overload
This commit is contained in:
14
apps/overload/src/app/app.component.ts
Normal file
14
apps/overload/src/app/app.component.ts
Normal 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');
|
||||
}
|
||||
Reference in New Issue
Block a user