mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 22:03:03 -05:00
23 lines
660 B
TypeScript
23 lines
660 B
TypeScript
import { Component } from '@angular/core';
|
|
import { randFirstName } from '@ngneat/falso';
|
|
import { PersonListComponent } from './person-list.component';
|
|
import { RandomComponent } from './random.component';
|
|
|
|
@Component({
|
|
standalone: true,
|
|
imports: [PersonListComponent, RandomComponent],
|
|
selector: 'app-root',
|
|
template: `
|
|
<app-random />
|
|
|
|
<div class="flex">
|
|
<app-person-list [names]="girlList" title="Female" />
|
|
<app-person-list [names]="boyList" title="Male" />
|
|
</div>
|
|
`,
|
|
})
|
|
export class AppComponent {
|
|
girlList = randFirstName({ gender: 'female', length: 10 });
|
|
boyList = randFirstName({ gender: 'male', length: 10 });
|
|
}
|