mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 14:23:02 -05:00
feat(challenge34): default vs onpush perfoamnce serie
This commit is contained in:
22
apps/performance/default-onpush/src/app/app.component.ts
Normal file
22
apps/performance/default-onpush/src/app/app.component.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { PersonListComponent } from './person-list.component';
|
||||
import { Persons } from './persons';
|
||||
import { RandomComponent } from './random.component';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [PersonListComponent, RandomComponent],
|
||||
selector: 'app-root',
|
||||
template: `
|
||||
<app-random />
|
||||
|
||||
<div class="flex">
|
||||
<app-person-list [data]="personList" title="List 1" />
|
||||
<app-person-list [data]="person2List" title="List 2" />
|
||||
</div>
|
||||
`,
|
||||
})
|
||||
export class AppComponent {
|
||||
personList = [...Persons];
|
||||
person2List = [...Persons];
|
||||
}
|
||||
Reference in New Issue
Block a user