![](https://res.cloudinary.com/techfeed/image/fetch/w_280,h_210,c_fill/https%3A%2F%2Fmiro.medium.com%2Fmax%2F1200%2F1*BJVadKoMyqw_fQ7PmaFu4w.png)
It’s ok to use function calls in Angular templates!
CRANK
“You should never use function calls on Angular templates!” — That’s what you will see all over the internet! And I’m here to prove you…
1 comments
テンプレート内で関数を呼び出すよりもパイプが推奨されるのはpureなパイプが自動的にメモ化されるためであり、自分でメモ化していれば関数呼び出しでも同じく効果的だという話。