mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
revert: pipe challenge changes (3)
This commit is contained in:
@@ -14,8 +14,8 @@ import { Component } from '@angular/core';
|
|||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
persons = ['toto', 'jack'];
|
persons = ['toto', 'jack'];
|
||||||
|
|
||||||
// very heavy computation
|
|
||||||
heavyComputation(name: string, index: number) {
|
heavyComputation(name: string, index: number) {
|
||||||
|
// very heavy computation
|
||||||
return `${name} - ${index}`;
|
return `${name} - ${index}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user