You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1819,11 +1819,13 @@ You can download the PDF and Epub version of this repository from the latest run
1819
1819
94. ### What is the purpose of any type cast function?
1820
1820
You can disable binding expression type checking using $any() type cast function(by surrounding the expression). In the following example, the error Property contacts does not exist is suppressed by casting user to the any type.
1821
1821
```javascript
1822
-
template: '{{$any(user).contacts.email}}'
1822
+
template:
1823
+
'{{ $any(user).contacts.email }}'
1823
1824
```
1824
1825
The $any() cast function also works with this to allow access to undeclared members of the component.
0 commit comments