mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 05:43:03 -05:00
16 lines
418 B
TypeScript
16 lines
418 B
TypeScript
import { Component } from '@angular/core';
|
|
import { createVehicle } from './vehicle.utils';
|
|
|
|
@Component({
|
|
standalone: true,
|
|
selector: 'app-root',
|
|
template: ``,
|
|
})
|
|
export class AppComponent {
|
|
car = createVehicle('car', 'diesel');
|
|
moto = createVehicle('moto', 'diesel');
|
|
bus = createVehicle('bus', undefined, 20);
|
|
boat = createVehicle('boat', undefined, 300, true);
|
|
bicycle = createVehicle('bicycle');
|
|
}
|