mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: Use of $any() has no runtime incidence. (#48785)
Some users are woried about `$any()` as function calls are to be avoided in templates. This sentence clarifies the situation. fixes #48781 PR Close #48785
This commit is contained in:
committed by
Jessica Janiuk
parent
4da1f2948c
commit
c03e6a6097
@@ -59,6 +59,8 @@ The `$any()` cast function also works with `this` to allow access to undeclared
|
||||
|
||||
The `$any()` cast function works anywhere in a binding expression where a method call is valid.
|
||||
|
||||
Also note that `$any()` only affects the typing. There is no method call in the generated code; the `$any()` function is entirely compiled away.
|
||||
|
||||
<!-- links -->
|
||||
|
||||
<!-- external links -->
|
||||
|
||||
Reference in New Issue
Block a user