Tener
export class AppComponent { private getMyVar(n: number){ return Promise.resolve(n * n); } public async getVar(n: number): Promise<number> { let result = await this.getMyVar(n); return result; } } ¿Cómo llamas a getVar desde la plantilla HTML?
Lo intenté
<p>getVar = {{ this.getVar(9) | async }}</p>pero esto no parece funcionar. El CodePen aquí